题解 | #明明的随机数#
明明的随机数
http://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
while True: try: n = int(input()) L = [] for i in range(n): nn = int(input()) if nn not in L: L.append(nn) L.sort() for x in L: print(x) except: break
明明的随机数
http://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
while True: try: n = int(input()) L = [] for i in range(n): nn = int(input()) if nn not in L: L.append(nn) L.sort() for x in L: print(x) except: break
相关推荐