fork download
  1. #(max_emax)
  2. from decimal import *
  3. getcontext().prec = 100
  4. from decimal import localcontext
  5. with localcontext() as ctx:
  6. ctx.Emax = 10 ** 10 ** 5 # 指数上限を増やす
  7. s = ctx.power(10,100000)
  8. t = (10 ** s)
Runtime error #stdin #stdout #stderr 0.16s 23952KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 6, in <module>
    ctx.Emax = 10 ** 10 ** 5 # 指数上限を増やす
OverflowError: Python int too large to convert to C ssize_t