题解 | #明明的随机数#
明明的随机数
http://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
循环输入,再进行去重,然后遍历分行输出就ac了
a = int(input().strip()) b = [] for i in range(a) : n = int(input().strip()) b.append(n) b = list(sorted(set(b))) for i in b : print(i)