log by murky-satyr

(n,b)="$System.in".split()*.toLong()
n*=K=10g.pow(100)
101.times{for(c=0;n>b*K;++c)n=n.intdiv(b)
print it?c:"$c."
n=n.pow(10).intdiv(K.pow(9))}

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

download

return to the top page