一起水呀(●ˇ∀ˇ●)
#include<iostream>
#include<algorithm>
using namespace std;
int ans = 0,num = 0,a,b;
int main () {
for (int j = 1;j <= 7;j++) {
cin >> a >> b;
if (a + b > 8 && a + b > num) {
num = a + b;
ans = j;
}
}
cout << ans << endl;
return 0;
}