70求解
查看原帖
70求解
626374
Future_Comet楼主2024/4/5 10:54
#include<bits/stdc++.h>
/*#include<windows.h>
#include<unistd.h>*/
using namespace std;
typedef long long LL;
LL k,m,n,a,b;
bool flag;
int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	/*freopen(".in","r",stdin);
	freopen(".out","w",stdout);*/
	//srand(time(NULL));
	cin>>k>>m>>n;
	for(int i=1;i<=m;i++)
	{
		cin>>a>>b;
		if(1ll*k/a*b>=n)
			cout<<i<<" ",flag=true;
	}
	if(!flag)
		cout<<-1;
	return 0;
}

3个RE,其他AC,求解。

2024/4/5 10:54
加载中...