- 本题的坑:删除的是后面的元素,是有顺序的。。。不能用set去重,这个是无序的。。。
n = int(input())
lines = list(map(int,input().split()))
lines_new = []
for i in lines:
if i not in lines_new:
lines_new.append(i)
else:
continue
print(*lines_new)
n = int(input())
lines = list(map(int,input().split()))
lines_new = []
for i in lines:
if i not in lines_new:
lines_new.append(i)
else:
continue
print(*lines_new)