Python 代码实现:

n = float(input())
res = pow(n,1/3) if n > 0 else -pow(-n, 1/3)
print('{:.1f}'.format(res))