int main()
{
double x;
cin >> x;
double l = -1000, r = 1000;
const double eps = 1e-8;
while (r - l > eps) //r-l小于一个很小的数。要求保留6位小数,则小于1e-8(大2)
{
double mid = (l + r) / 2;
if(mid * mid * mid < x) l = mid; //if里面实现具体条件
else r = mid;
}
printf("%.6lf", l); //格式控制
return 0;
}