提交时间:2026-07-04 15:23:19
运行 ID: 75533
#include<bits/stdc++.h> using namespace std; int a[7],b[7],c[7]; int mx=-1000,k; int main(){ for(int i=0;i<7;i++){ cin>>a[i]>>b[i]; if(a[i]+b[i]>8)c[i]=a[i]+b[i]; }for(int i=0;i<7;i++){ if(c[i]>mx){ mx=c[i]; k=i; } }if(mx==0)cout<<0; else cout<<k+1; return 0; }