社区讨论

求助,满分但不通过

P1085[NOIP 2004 普及组] 不高兴的津津参与者 5已保存回复 4

讨论操作

快速查看讨论及其快照的属性,并进行相关操作。

当前回复
4 条
当前快照
1 份
快照标识符
@lo1ukt31
此快照首次捕获于
2023/10/23 03:14
2 年前
此快照最后确认于
2023/11/03 03:45
2 年前
查看原帖
为什么#11WA
CPP
#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;
}

回复

4 条回复,欢迎继续交流。

正在加载回复...