求助,满分但不通过
查看原帖
求助,满分但不通过
1061742
Lch6665楼主2023/8/14 21:41

为什么#11WA

#include<cstdio>
using namespace std;
int main(){
	int school_day[7],other_day[7];
	for(int i = 0;i<7;i++){
		scanf("%d%d",&school_day[i],&other_day[i]);
	}
	for(int i = 0;i<7;i++){
		if(school_day[i]+other_day[i]>8){
			printf("%d",i+1);
			return 0; 
		} 
	}
	printf("%d",0);
	return 0;
}
2023/8/14 21:41
加载中...