题解 | 序列中整数去重
序列中整数去重
https://www.nowcoder.com/practice/6564a2f6e70f4153ad1ffd58b2b28490
n = int(input())
l = list(map(int, input().split()))
l = list(dict.fromkeys(l))
print(' '.join(map(str, l)))
序列中整数去重
https://www.nowcoder.com/practice/6564a2f6e70f4153ad1ffd58b2b28490
n = int(input())
l = list(map(int, input().split()))
l = list(dict.fromkeys(l))
print(' '.join(map(str, l)))
相关推荐