newton/solutions/python/43A.py

12 lines
173 B
Python
Raw Normal View History

2025-01-15 21:06:34 +00:00
n = int(input())
goals = {}
for _ in range(n):
team = input()
if team not in goals:
goals[team] = 0
goals[team] += 1
print(max(goals, key=goals.get))