九敏!!!!!!!!!
查看原帖
九敏!!!!!!!!!
845976
dyx05221129楼主2023/10/1 14:52

为什么过不了????#11 wa

#include<iostream>
using namespace std;
int main()
{
	int a[7], b[7];
	for(int i = 1;i <= 7; i++){
		cin >> a[i-1] >> b[i-1];
	}
	for(int i = 1;i <= 7; i++){
		if(a[i-1] + b[i-1] > 8)
		{
			cout << i << endl;
			return 0;
		}
	}
	cout << 0 << endl;
	return 0;
}
2023/10/1 14:52
加载中...