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=' ')