题解 | #序列中整数去重#
序列中整数去重
http://www.nowcoder.com/practice/6564a2f6e70f4153ad1ffd58b2b28490
BC125 序列中整数去重
思路:
step1:添加法去重;打印;
代码如下:
n = input()
n = list(map(int,input().split()))
c = []
for i in n:
if i not in c:
c.append(i)
for i in c:
print(i,end=' ')