RE 暴0 求调
查看原帖
RE 暴0 求调
1690315
DPOI楼主2025/7/3 19:57

如题。

#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

2025/7/3 19:57
加载中...