#921
Bronze IV
PET
시간 제한
1s
메모리 제한
32MB
제출
1
정답
1
맞힌 사람
1
정답 비율
100.0%

문제

In the popular show "Dinner for Five", five contestants compete in preparing culinary delights. Every evening one of them makes dinner and each of other four then grades it on a scale from 1 to 5. The number of points a contestant gets is equal to the sum of grades they got. The winner of the show is of course the contestant that gets the most points. Write a program that determines the winner and how many points they got.

입력

Five lines, each containing 4 integers, the grades a contestant got. The contestants are numbered 1 to 5 in the order in which their grades were given. The input data will guarantee that the solution is unique.

출력

Output on a single line the winner's number and their points, separated by a space.

예제 입력 1

5 4 4 5
5 4 4 4
5 5 4 4
5 5 5 4
4 4 4 5

예제 출력 1

4 19

예제 입력 2

4 4 3 3
5 4 3 5
5 5 2 4
5 5 5 1
4 4 4 4

예제 출력 2

2 17
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
#순위사용자언어시간메모리코드 길이
5671🥇
안우진
Python6ms8496KB158B
난이도 투표
Bronze IV1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
#사용자문제결과언어시간메모리코드 길이제출 시간
5671
맞았습니다
Python6ms8496KB158B2026. 04. 29. 00:58