#include<bits/stdc++.h>
using namespace std;
int main()
{
double f;
while(cin>>f,f)
{
double a = floor(pow(f, 1/3.0)+1e-6);
double dx = (f-a*a*a)/3.0/a/a;
printf("%.4lf\n", a+dx);
}
return 0;
}
using namespace std;
int main()
{
double f;
while(cin>>f,f)
{
double a = floor(pow(f, 1/3.0)+1e-6);
double dx = (f-a*a*a)/3.0/a/a;
printf("%.4lf\n", a+dx);
}
return 0;
}
No comments:
Post a Comment