790. 数的三次方根
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
double n;
cin >> n;
double l = -10000, r = 10000;
while(r - l > 1e-8){ // 由于要保留6位小数,那么写成1e-8,而且要用double,用float超时
double mid = (l + r) / 2;
if(mid * mid * mid >= n) r = mid;
else l = mid;
}
printf("%.6lf", l);
}