python为什么挂了?

P2293 [HNOI2004] 高精度开根

你可以看一看你交的Python2还是Python3 QAQ
by yizimi远欣 @ 2018-08-08 15:04:54


还有,Python会经常炸(我也不清楚)
by yizimi远欣 @ 2018-08-08 15:06:58


```python import math n=int(input()) a=int(input()) print(int(math.pow(a,1.0/n))) ``` ------------ 我也挂了 5个RE 懵
by tllwtg @ 2018-08-22 19:02:42


@[liuzhiliu](/space/show?uid=47831) 似乎后五组数据pow出来直接是inf= =不知道float的范围是多少
by LinkinPony @ 2018-11-25 18:50:36


@[liuzhiliu](/space/show?uid=47831) @[zhuchengyang](/space/show?uid=48914) py是没有高精度实数的,泥萌这样写显然要炸
by 一扶苏一 @ 2019-01-07 16:45:05


建议看看第一篇题解
by denghuolanshan_1024 @ 2023-03-15 20:08:52


|