100分没过
查看原帖
100分没过
1456209
l17765887828楼主2025/1/13 22:36
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n=8, j = 0;
	for(int i=1;i<=7;i++)
	{
		int x,k;
		cin>>x>>k;
		if(x+k>n)
		{
			cout<<i;
        	return 0;
		}
	}
    cout << 0;
	return 0;
}
2025/1/13 22:36
加载中...