题解 | #求解立方根#
求解立方根
http://www.nowcoder.com/practice/caf35ae421194a1090c22fe223357dca
应该可以用1/3次方做吧?
import sys
for line in sys.stdin:
n=float(line)
if n>=0:
out=n**(1/3)
out=format(out,'.1f')
else:
out=(-n)**(1/3)
out=format(-out,'.1f')
print(out)