Problem G: 22-map-不重复地输出数 Problem G: 22-map-不重复地输出数
Time Limit: 1 Sec Memory Limit: 128 MB
Submit: 3 Solved: 2
[Submit] [Status] [Web Board] [Creator:]Description
输入n个数,从小到大将它们输出,重复的数只输出一次。保证不同的数不超过500个。
Input
第一行是一个整数n。1 ≤ n ≤ 100000。
之后n行,每行一个整数。整数大小在int范围内。
Output
一行,从小到大不重复地输出这些数,相邻两个数之间用单个空格隔开。
Sample Input
5
2 4 4 5 1
Sample Output
1 2 4 5
[Submit][Status]