scientific_comp_projects/CODE/[python]kattis/trivial/icpc_awards.py

25 lines
529 B
Python

participant_number = int(input())
winners = []
for i in range(participant_number):
testing = input()
university = True
if i == 0:
winners.append(testing)
j = 1
elif i != 0 and j<12:
uni, team = testing.split(' ')
for win in winners :
uni_win, _ = win.split(' ')
if uni == uni_win:
university = False
break
if university :
winners.append(testing)
j += 1
for win in winners :
print(win)