为什么爆0?
查看原帖
为什么爆0?
1452676
liukangzhe2029楼主2024/12/10 17:46
#include<bits/stdc++.h>
using namespace std;
long long t,h,x,y,a,b;
int main(){
	cin>>t;
	for(int i=1;i<=t;++i){
		cin>>h>>x>>y;
		if(x==0){
			cout<<"Yes"<<endl;
			continue;
		}
		if(y==0){
			cout<<"No"<<endl;
			continue;
		}
		a=h%x;
		if(y*2>=a&&a!=0&&x<h) cout<<"Yes"<<endl;
		else if(x>=h&&y>=h) cout<<"Yes"<<endl;
		else cout<<"No"<<endl;
	}
	return 0;
}
2024/12/10 17:46
加载中...