题解,我觉得讲的足够好了
code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n,m,i;
cin>>n>>m;
for(i=2;i<=m;i++)
{
if(n%i!=i-1)
{
puts("Yes");
break;
}
}
if(i==m+1)puts("No");
}
return 0;
}
标签:取模,P8807,int,cin,蓝桥,2022
From: https://www.cnblogs.com/pure4knowledge/p/18016477