9 lines
265 B
Python
9 lines
265 B
Python
'''****** Задание ********
|
|
*Максимальная сумма.
|
|
'''
|
|
name, summ = '', 0
|
|
for _ in range(int(input())):
|
|
temp_name, temp_summ = input(), sum(map(int, input()))
|
|
if temp_summ >= summ:
|
|
name, summ = temp_name, temp_summ
|
|
print(name) |