题解 | #明明的随机数#
明明的随机数
http://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
while True: try: #输入随机数个数 n = int(input()); #存放随机数的列表,并加入随机数 tempList = []; for i in range(n): tempList.append(int(input())); #set删除重复,并无序 resultSet = set(tempList); #list.sort对数组排序 result = list(resultSet); result.sort(); #输出结果 for i in result: print(i); except (EOFError, ): break;