题解 | 【模板】扩展巴什博弈

【模板】扩展巴什博弈

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;
}

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务