Number guess 1000 by torikara

i;x;k;main(j){for(;j=~scanf("%d",&x);puts(""))for(k=i=500;k;i+=.5-500.*k/j,j*=2)k=i<x,k-=i>x,printf("%d %c\n",i,61-k);}

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

download

return to the top page