import sys
max_total = 0
who = 0
for i in range(5):
score = list(map(int, sys.stdin.readline().split()))
total = sum(score)
if max_total < total:
max_total = total
who = i + 1
print(who, max_total)
🔑 sum
이라는 함수를 안썼다면 코드가 길어졌겠지만 함수를 사용해서 간결하게 끝낼 수 있었다.
함수 최고,,,👍👍