标签:names int 三次 scan space include name clu print
#include <bits/stdc++.h>
using namespace std;
int main(){
double n,mid;
scanf("%lf",&n);
double l=-1e6-10,r=1e6+10;
while(r-l>1e-8){
mid=(l+r)/2;
if(mid*mid*mid>=n) r=mid;
else l=mid;
}
printf("%.6lf",l);
return 0;
}
标签:names int 三次 scan space include name clu print
原文地址:https://www.cnblogs.com/wiseXu/p/13390400.html