정올/intermediate

정올 4989 자료구조 - Tutorial: STL Map

juwanseo 2025. 1. 23. 12:29

문제
예제

from collections import Counter

n = int(input())
elements = list(map(int, input().split()))

counter = Counter(elements)

for elem in sorted(counter.keys()):
    print(f"{elem} : {counter[elem]}")