Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
71753 sh25_ganzy 不高兴的津津 C++ Accepted 0 MS 240 KB 301 2025-10-28 10:57:34

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n=0,a[7],b[7],max=8; for(int i=0;i<7;i++){ cin>>a[i]>>b[i]; } for(int i=0;i<7;i++){ if(a[i]+b[i]>max){ n=i+1; max=a[i]+b[i]; } } cout<<n; return 0; }


Judgement Protocol: