题解 | #求解立方根#
求解立方根
https://www.nowcoder.com/practice/caf35ae421194a1090c22fe223357dca
n = float(input()) if n > 0: print(round(n**(1/3), 1)) else: print('-'+str(round(abs(n**(1/3)), 1)))
求解立方根
https://www.nowcoder.com/practice/caf35ae421194a1090c22fe223357dca
n = float(input()) if n > 0: print(round(n**(1/3), 1)) else: print('-'+str(round(abs(n**(1/3)), 1)))
相关推荐