#921
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 | 🥇 | 안우진 | Python | 6ms | 8496KB | 158B |
난이도 투표
로그인 후 AC 받으면 투표할 수 있습니다.