Number guess 1000 by iwadon

$<.map{|q|s='';q=q.to_i;a=n=500;begin;c=q<=>a;s<<"#{a} #{%w(> = <)[c+1]}\n";n/=2.0;a=(a+n*c+0.5).to_i;end while c!=0;$*<<s};$><<$**$/

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

download

return top