题解 | #明明的随机数#

明明的随机数

https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0

import sys

list_a = []
N = 0
list_out = []
for line in sys.stdin:
    a = line.split()
    list_a.append(a[0])
N = list_a[0]
for i in list_a[1:]:
    list_out.append(i)
    for j in list_out[:-1]:
        if i == j:
            list_out = list_out[:-1]
for i in range(len(list_out)):
    list_out[i] = int(list_out[i])
list_out = sorted(list_out)
for i in list_out:
    print(i)

全部评论

相关推荐

评论
点赞
收藏
分享
牛客网
牛客企业服务