题解 | 明明的随机数
N = int(input('')) List = [] for i in range(500): List.append(0) for i in range(N): A = int(input('')) List[A - 1] = 1 for i in range(500): if List[i] > 0: print(i + 1)
N = int(input('')) List = [] for i in range(500): List.append(0) for i in range(N): A = int(input('')) List[A - 1] = 1 for i in range(500): if List[i] > 0: print(i + 1)
相关推荐