title:http: //acm.zju.edu.cn/show_problem.php?pid=1904
tip: It is very simple.the key is D=pow(D,3); d=pow(D-6*v/PI,1.0/3).
code:
#include<stdio.h>
#include<math.h>
#define PI 3.1415926
int main()
{
double d,v,D;
while(scanf("%lf%lf",&D,&v)!=EOF && D !=0 && v!=0)
{
D=pow(D,3);
d=pow(D-6*v/PI,1.0/3);
printf("%0.3lf/n",d);
}
return 1;
}