새소식

Algorithm/Acmicpc.net (백준)

[python] 백준 : 나는 요리사다 (2953번)

  • -
max = 0
for i in range(5):
    score = list(map(int,input().split()))
    if sum(score) > max:
        max = sum(score)
        winner = i+1
print("%d %d" % (winner, max))
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.