Skip to main content
deleted 4 characters in body
Source Link
fR0DDY
  • 4.6k
  • 26
  • 37

C 84 81 7874 Characters

mainr;main(v,r,x){for(scanf("%d",&v),x=v,r=0;v;vx=v;v;v/=2)r=r*2|v&1;puts(r-x?"NO":"YES");}

It does not use any function like string reverse.

C 84 81 78 Characters

main(v,r,x){for(scanf("%d",&v),x=v,r=0;v;v/=2)r=r*2|v&1;puts(r-x?"NO":"YES");}

It does not use any function like string reverse.

C 84 81 74 Characters

r;main(v,x){for(scanf("%d",&v),x=v;v;v/=2)r=r*2|v&1;puts(r-x?"NO":"YES");}

It does not use any function like string reverse.

added 17 characters in body
Source Link
fR0DDY
  • 4.6k
  • 26
  • 37

C 84 8181 78 Characters

main(v,r,x){for(scanf("%d",&v),x=v,r=0;v;r*=2,r|=v&1,vr=0;v;v/=2);putsr=r*2|v&1;puts(r-x?"NO":"YES");}

It does not use any function like string reverse.

C 84 81 Characters

main(v,r,x){for(scanf("%d",&v),x=v,r=0;v;r*=2,r|=v&1,v/=2);puts(r-x?"NO":"YES");}

It does not use any function like string reverse.

C 84 81 78 Characters

main(v,r,x){for(scanf("%d",&v),x=v,r=0;v;v/=2)r=r*2|v&1;puts(r-x?"NO":"YES");}

It does not use any function like string reverse.

deleted 3 characters in body
Source Link
fR0DDY
  • 4.6k
  • 26
  • 37

C 8484 81 Characters

main(v,r,x){for(scanf("%d",&v),x=v,r=0;v;r<<=1r=0;v;r*=2,r|=v&1,v>>=1v/=2){}puts;puts(r-x?"NO":"YES");}

It does not use any function like string reverse.

C 84 Characters

main(v,r,x){for(scanf("%d",&v),x=v,r=0;v;r<<=1,r|=v&1,v>>=1){}puts(r-x?"NO":"YES");}

It does not use any function like string reverse.

C 84 81 Characters

main(v,r,x){for(scanf("%d",&v),x=v,r=0;v;r*=2,r|=v&1,v/=2);puts(r-x?"NO":"YES");}

It does not use any function like string reverse.

Source Link
fR0DDY
  • 4.6k
  • 26
  • 37
Loading