Square root of 1 in mod 1e300 by mitchs

n=input()
t=1
exec'while n*n%(t*100)-1:n+=t\nt*=10\n'*300
print n%t

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

download

return to the top page