Skip to content

Baekjoon 2953

1. Problem

문제 확인하기

2. Solution

for i in range(5):
    if i == 0: 
        score = {i+1 : sum(map(int, input().split()))}
    else:
        score.update({i+1 : sum(map(int, input().split()))})
print(max(score, key=score.get), score[max(score, key=score.get)])