#42103: __答案


DannyEggyParty (正在衝排行榜)

學校 : 不指定學校
編號 : 273334
來源 : [42.70.244.111]
最後登入時間 :
2025-09-26 21:10:58

total = int(input())
nums = list(map(int, input().split()))  # Map to integers
unique_nums = sorted(set(nums))  # Remove duplicates and sort

print(len(unique_nums))  # Print the length of unique numbers
print(" ".join(map(str, unique_nums)))  # Print sorted unique numbers