Problem B: 线性链表的删除

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:249 Solved:108

Description

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

Sample Input Copy

1 2 3 4 5 -1
3

Sample Output Copy

1 2 3