#include<bits/stdc++.h>
#include<math.h>
#include<algorithm>
using namespace std;
int T,n;
int ans=0;
int dp[5000]={0};
int main()
{
dp[0]=1;
dp[1]=1;
for(int i=2;i<5000;i++)
{
dp[i]=0;
for(int j=1;j<=i/2;j++)
{
if(!(i%j))
{
dp[i]+=j;
}
}
}
cin>>T;
while(T--)
{
cin>>n;
for(int i=0;i<=1000;i++)
{
if(dp[i]==n)
{
ans=1;
break;
}
}
if(ans==0)
{
cout<<"yes";
}
else
{
cout<<"no";
}
cout<<endl;
}
}
Description
数m,s(m)都不等于n,则称n为不可摸数.
Input
Output
Sample Input
Sample Output
no
标识符要放循环外!!!
天坑!!!!!!!!!!!!!!!!!