游客 Signup | Login
中文 | En

3581 - 线性链表建立及正序输出

通过次数

0

提交次数

0

Time Limit : 1 秒 Memory Limit : 128 MB

输入一个正整数序列,遇负数时停止,建立一个线性链表存储读入的数据,将各个元素按顺序输出。

Input

Output

Examples

Input Format

1 2 3 4 5 -1

Output Format

1 2 3 4 5