참고사이트: dict사용해서 최대값의 키 찾기
문제링크 : https://www.acmicpc.net/problem/11652
counter = dict(sorted(counter.items()))
max(counter, key=counter.get)
: 타입에 신경쓰면서 코딩할 것
import sys
import collections
input = sys.stdin.readline
N = int(input())
cardList = []
for _ in range(N):
cardList.append(int(input()))
counter = collections.Counter(cardList)
counter = dict(sorted(counter.items()))
# print(counter)
print(max(counter, key=counter.get))