BOJ - 10867 - 중복 빼고 정렬하

Updated:

def solution():
    N = int(input())
    arr = list(map(int, input().split()))

    arr = list(set(arr))
    arr.sort()

    for i in arr:
        print(i, end=' ')

solution()

https://www.acmicpc.net/problem/10867

Categories:

Updated:

Leave a comment