题解 | 【模板】扩展巴什博弈
【模板】扩展巴什博弈
https://www.nowcoder.com/practice/4b0d36a3d3884cf69f618cf4c2511d82
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t;
cin>>t;
while(t--){
long long n,l,r;
cin>>n>>l>>r;
cout << (n%(l+r) < l ? "NO" : "YES") << '\n';
}
return 0;
}

查看26道真题和解析