We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
from Volume 1. Elementary Problem Solving :: Maths - Misc
给出 n 和 p。求出 p 的 n 次方根。
虽然题目中的 p 值很大。但我们仍然可以用 double 类型来解决。但是不知是精度问题还是 WTF 问题。利用 log() 来计算是不行的,只能用 pow() 来计算,同时结果要四舍五入。