AC

秋风拂过发梢  •  11个月前


include <stdio.h> int main () { int a=0,b=0,c,d,e=0; for (int i=1;i<=7;i++) {

scanf("%d %d",&c,&d);	
e = c+d;
if (a<e&&e>8)
{
a = e;
b = i;
}

} printf("%d",b); return 0; }


评论:

请先登录,才能进行评论