100但不AC,为什么!!!!!!
查看原帖
100但不AC,为什么!!!!!!
1023281
JingchenBian楼主2023/8/16 11:00

评测截图

评测页面地址

源代码

#include<bits/stdc++.h>
using namespace std;
int a[8];
int main(){
	bool s=1;
	for(int i=1;i<=7;i++){
		int x,y;
		cin>>x>>y;
		a[i]=x+y;
	}
	for(int i=1;i<=7;i++){
		if(a[i]>8){
			s=0;
			cout<<i;
			break;
		}
	}
	if(s) cout<<0;
	return 0;
}
2023/8/16 11:00
加载中...