nth root of v by murky-satyr

(n,v)="$System.in".split()*.toLong()
x=1
111.times{t=v+1E-102
2.upto(n){t/=x}
x=(~-n*x+t)/n}
print"$x"[0..101]

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

download

return to the top page