题面传送门
一道模拟题,直接打擂台即可
#include<bits/stdc++.h> using namespace std; int n,k,maxx; int x,y; int main(){ for(int i=1;i<=7;i++){ cin>>x>>y; if(x+y>maxx){ k=i; maxx=x+y; } } cout<<k; return 0; }