n = int(input())
li= []
total_list = []
for i in range(n):
ID,name,s1,s2,s3 = input().split()
s1,s2,s3 = int(s1),int(s2),int(s3)
total = s1+s2+s3
a = [ID,name,s1,s2,s3,total]
total_list.append(total)
li.append(a)
max_score = max(total_list)
for each in li:
if each[-1]==max_score:
print(each[1],each[0],each[-1])
浙大版《Python 程序设计》题目集 第6章-7 找出总分最高的学生 (15分)
