题解 | #明明的随机数#
明明的随机数
https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
n = int(input()) nums = [] for i in range(n): tmp = int(input()) nums.append(tmp) dict = {} for tmp in nums: dict[tmp] = tmp a = list(dict.keys()) a.sort() for tmp in a: print(tmp)