讨论 / Super水
Artrix 2017-10-26 16: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;

}

#1 test@2017-10-31 12:45:15
回复 删除
good!
#2 LisaXu@2017-12-10 18:47:00
回复 删除
nice

查看更多回复
提交回复