正解

刘祖滉 · 发布于 2024-07-31 · 浏览 579 回复 0

include

include

include<stdio.h>

using namespace std; int main(){

int a,b,t,c;
t=0;
for( int i=1; i <= 7; i++){
	scanf("%d %d",&a,&b);
    if(a+b>8 && a+b>t){
        c=i;
        t=a+b;
    }
}
printf("%d",c);
return 0;

}

全部回复 共 0 条

还没有人回复。往下写第一条。

发表回复