题解 | 【模板】巴什博弈
【模板】巴什博弈
https://www.nowcoder.com/practice/9bb882504d574ec287f69e967ce0fb95
#include <bits/stdc++.h>
using namespace std;
int t, n, m;
int main() {
cin >> t;
while (t--) {
cin >> n >> m;
cout << (n % (m + 1) ? "YES\n" : "NO\n");
}
return 0;
}

查看21道真题和解析