如题。
#include<bits/stdc++.h>
using namespace std;
void slove(){
long long h,x,y;cin>>h>>x>>y;
if (y==0){
cout<<"No"<<'\n';
return;
}
int cnt=h%x;
if (cnt==0)cnt=x;
if (cnt%y==0&&(cnt/y)<=h/x+1)cout<<"Yes"<<'\n';
else cout<<"No"<<'\n';
}
int main(){
int T;cin>>T;
while (T--)slove();
}
https://www.luogu.com.cn/record/222225813