Problem1743--有序链表中的插入

1743: 有序链表中的插入

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

给定一个链表:
a=[[100,-1],[95, 0],[90, 1],[85,2],[80,3]]
head=4 
输入任意整数n,将n插入到链表中,使得链表依旧有序
遍历输出插入后的链表


Input

n

Output

插入n之后,遍历链表输出数据

Sample Input Copy

96

Sample Output Copy

80->85->90->95->96->100

Source/Category

链表