#include <stdio.h>
#define M 0x0003C000
int x=0;
int test_virus(unsigned int V,int T)
{
unsigned int V1,V2;
if(((1<<31)&V)!=0) V1=V<<T;
else V1=V<<1;
if((1&V)!=0) V2=V>>T;
else V2=V>>1;
if(T<=6)
{
V1=test_virus(V1,T+1);
V2=test_virus(V2,T+1);
}
if(T>6)
{
if(((V1&M)^M)==0) x=1;
}
if(T>6)
{
if(((V2&M)^M)==0) x=1;
}
}
int main()
{
unsigned int V;
int T=1;
scanf("%d",&V);
test_virus(V,T);
if(x==1) printf("yes\n");
else printf("no\n");
}
也不知道到底对不对