Number guess 1000 by xulapp

while 1:
\x09n=input();d=m=1e3;c=1
\x09while c:d/=2;m=int(m-c*d+.5);c=cmp(m,n);print m,'=><'[c]
\x09print

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

download

return to the top page