guess Base N by quillaja

package main
import(."fmt";."strconv")
func main(){x,n,s:=int64(0),0,""
k:=func()bool{_,e:=Scanln(&x,&s);return e==nil}
for k(){for n=2;s!=FormatInt(x,n);n++{}
println(n)}}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page