题解:P11204 「Cfz Round 9」Lone
我们考虑将所有小木棍的长度都设为
如果余数不等于0呢?
我们知道
这里我们考虑一个特殊情况
AC代码:
#include<bits/stdc++.h>
using namespace std;
int m, n;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int t;
cin >> t;
while(t--)
{
cin >> n >> m;
if(m / n == 1 && m % n < n - 1 && m % n)
cout << "No\n";
else
cout << "Yes\n";
}
return 0;
}