• 先用列表推导式求出要从第二行输入的N个整数集,再使用set去重,最后使用内置sorted函数排序打印即可
a = [int(input()) for i in range(int(input()))]
for i in sorted(set(a)):
    print(i)