题解 | #明明的随机数#
明明的随机数
https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
list_num=[]
N=int(input())
assert N>=1 and N<=1000,'输入数据范围错误应为1到1000! '
for i in range(N):
list_num.append(int(input()))
assert list_num[i]>=1 and list_num[i]<=500,'输入数字大小错误应为1到500!'
Set_list=set(list_num)
list_num=sorted(list(Set_list))
for i in range(len(list_num)):
print(list_num[i])
'''
while True:
try:
a=int(input())
b=set()
for i in range(a):
b.add(int(input()))
for i in sorted(b):
print(i)
except:
break
'''
腾讯音乐娱乐集团公司福利 283人发布