题解 | #序列中整数去重#
序列中整数去重
http://www.nowcoder.com/practice/6564a2f6e70f4153ad1ffd58b2b28490
从后往前count删除元素,再反转输出
n=input()
nums=input().split(" ")
dst_nums=nums[::-1]
for i in nums:
if dst_nums.count(i)>1:
dst_nums.remove(i)
print(" ".join(dst_nums[::-1]))