Number guess 1000 by TBM_lover

p;float D;main(a){for(;scanf("%d",&a)+1;)for(p=0,D=500;p-a;D/=2)p+=0.5+(p>a?-D:D),printf("%d %s\n",p,p-a?p>a?">":"<":"=\n");}

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

download

return to the top page