728x90
반응형

단순 정렬 문제이다. 조합을 사용하면 중복되는 수를 쉽게 제거할 수 있다.

N = int(input())
li = set(map(int, input().split()))
print(*sorted(li))

 

728x90
반응형

+ Recent posts