Number guess 1000 by nn

float d;main(n,v){for(;~scanf("%d",&n);puts(""))for(d=v=500;printf("%d %c\n",v,61+(v>n)^v<n),n-v;v+=(v<n?d:-d)+.5)d/=2;}

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

download

return to the top page