Skip to content
Snippets Groups Projects
8.py 182 B
Newer Older
hacker717's avatar
hacker717 committed
arrs, arrn = [], []
for _ in range(int(input())):
    arrs.append(input())
    arrn.append(sum([int(i) for i in input()]))

print(arrs[len(arrs) - 1 - (arrn[::-1].index(max(arrn)))])