提交时间:2026-02-19 11:48:51

运行 ID: 84684

#include<bits/stdc++.h> using namespace std; int main() { int ls[7][2]; // cout << fixed << setprecision(10) << ce(a); for(int i = 0; i < 7; i++){ cin>>ls[i][0]>>ls[i][1]; } int cnt = 0; for(int i = 0; i < 7; i++){ if(ls[i][0]+ls[i][1] > cnt){ cnt = ls[i][0]+ls[i][1]; } } for(int i = 0; i < 7; i++){ if(ls[i][0]+ls[i][1] == cnt){ cout<<i+1; break; } } return 0; }