링크 : https://www.acmicpc.net/problem/2953
#include <iostream>
#include <vector>
using namespace std;
int main() {
int temp = 0;
int max = 0;
int n = 0;
for(int i = 0; i < 5; i ++){
int sum = 0;
for(int j = 0; j < 4; j++){
cin >> temp;
sum += temp;
}
if(sum > max){
max = sum;
n = i + 1;
}
}
cout << n << " " << max;
return 0;
}