0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-09 01:58:48 +00:00
OI-codes/Luogu/P6408/P6408.cpp

21 lines
379 B
C++
Raw Normal View History

2021-11-19 09:01:13 +00:00
#include <bits/stdc++.h>
2020-10-14 13:07:21 +00:00
using namespace std;
int main() {
int maxi, maxn, t0, t1;
2021-11-19 09:01:13 +00:00
for (int i = 0; i < 5; i++) {
2020-10-14 13:07:21 +00:00
t1 = 0;
2021-11-19 09:01:13 +00:00
for (int j = 0; j < 4; j++) {
2020-10-14 13:07:21 +00:00
cin >> t0;
t1 += t0;
}
2021-11-19 09:01:13 +00:00
if (t1 > maxn) {
2020-10-14 13:07:21 +00:00
maxn = t1;
2021-11-19 09:01:13 +00:00
maxi = i + 1;
2020-10-14 13:07:21 +00:00
}
}
cout << maxi << ' ' << maxn << endl;
return 0;
}