project-python3/lesson2.4_8.py
2025-12-15 14:14:56 +05:00

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)