Problem1588--线性链表的删除

1588: 线性链表的删除

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 2  Solved: 2
[Submit] [Status] [Web Board] [Creator:]

Description

输入一个正整数序列,遇负数时停止,建立一个线性链表存储读入的数据,然后从键盘读入一数据x,在该链表中删除比x大的数据后输出。

Sample Input Copy

1 2 3 4 5 -1
3

Sample Output Copy

1 2 3

Source/Category