Artrix 2017-10-26 01:54:43
点我顶贴
收藏
删除
#include <iostream>
#include <cstdio>
using namespace std;
int main(){
int i=0,max=0,daywork[7];
while(i<7){
int a,b;
cin>>a>>b;
daywork[i++]=a+b;
}
for (int p=0;p<7;p++)if (daywork[p]>daywork[max])max=p;
cout<<max+1<<endl;
}