You are viewing a single comment's thread. Return to all comments →
from collections import Counter
grp_size = int(input())
room_nmbrs = Counter(input().split())
caps_room = room_nmbrs.most_common()[-1]
print(caps_room[0])
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 →
from collections import Counter
grp_size = int(input())
room_nmbrs = Counter(input().split())
caps_room = room_nmbrs.most_common()[-1]
print(caps_room[0])