GPF in Binary by nanayaT

i,x;main(){char a[9];gets(a);for(x=atoi(a),i=x/2;i>1&&(x%i);i--);if(i<=1)i=x;for(x=2;x<=i;x*=2);x/=2;for(;x>0;x/=2)if(i<x)putchar('_');else{i-=x;putchar('-');}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page