直接循环输入的数进行后续数值的接收,将接收的数值放入集合并进行排序,然后循环换打印 🤣

for i in sorted({int(input()) for _ in range(int(input()))}):print(i)