题解 | #求解立方根#
求解立方根
https://www.nowcoder.com/practice/caf35ae421194a1090c22fe223357dca
while True: try: n = float(input()) a = 1/3 if n > 0: result = n**a print(round(result, 1)) else: #n-2*n 巧妙的将负数变为正数 result = (n-2*n)**a print('-'+str(round(result, 1))) except: break