C++ 代码
#include <iostream>
using namespace std;
int main()
{
int a, b, ret = 0, ans = 8;
for(int i = 1; i <= 7; ++ i){
cin >> a >> b;
if(a + b > ans){
ans = a + b;
ret = i;
}
}
cout << ret << endl;
return 0;
}