solutions: 43A
This commit is contained in:
parent
a7516e3136
commit
9fc85722fe
1 changed files with 11 additions and 0 deletions
11
solutions/python/43A.py
Normal file
11
solutions/python/43A.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
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))
|
Loading…
Reference in a new issue