题解 | #序列中整数去重#只能说楼上牛逼
序列中整数去重
http://www.nowcoder.com/practice/6564a2f6e70f4153ad1ffd58b2b28490
只能说楼上牛逼
n=int(input()) #5
n1=list(map(int,input().split()))
n2=list(set(n1))
n2.sort(key=n1.index)
print(*n2)
序列中整数去重
http://www.nowcoder.com/practice/6564a2f6e70f4153ad1ffd58b2b28490
只能说楼上牛逼
n=int(input()) #5
n1=list(map(int,input().split()))
n2=list(set(n1))
n2.sort(key=n1.index)
print(*n2)
相关推荐