题解 | #明明的随机数# O(n)
明明的随机数
https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
n = int(input()) list1 = [0 for i in range(501)] for i in range(n): v = int(input()) list1[v] = 1; for i in range(501): if list1[i] == 1: print(i)
明明的随机数
https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
n = int(input()) list1 = [0 for i in range(501)] for i in range(n): v = int(input()) list1[v] = 1; for i in range(501): if list1[i] == 1: print(i)
相关推荐