You are viewing a single comment's thread. Return to all comments →
A bit of a hack, maybe...
from collections import Counter _ = input() c = Counter(int(a) for a in input().split(' ')) print([num for num, _ in c.most_common(100000)][-1])
Seems like cookies are disabled on this browser, please enable them to open this website
The Captain's Room
You are viewing a single comment's thread. Return to all comments →
A bit of a hack, maybe...