题目描述

(Duplicate Elimination with array) Use a one-dimensional array to solve the following problem. Read in 30 numbers, each of which is between 1 and 1000, inclusive. As each number is read, validate it and store it in the array only if it isn’t a duplicate of a number already read. After reading all the values, display only the unique values that the user entered. Provide for the “worst case” in which all 30 numbers are different. Use the smallest possible array to solve this problem.


输入格式

The input consists of 30 numbers (range from 1 to 1000)


输出格式


样例数据

输入

11 11 12 12 13 13 14 14 15 15 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10

输出

11 12 13 14 15 1 2 3 4 5 6 7 8 9 10 

备注


操作

评测记录

优秀代码

信息

时间限制: 1s
内存限制: 128MB
评测模式: Normal

题解