poj 2405(水题)

#include<iostream>
#include<cmath>
using namespace std;
#define PI 3.14159265
int main(){
    double V,d,D;
    while(scanf("%lf%lf",&D,&V)==2&&D){
        d = pow(D*D*D-V*6/PI,1.0/3);
        printf("%.3lf\n",d);
    }
    return 0;
} 

 

posted @ 2021-11-29 14:37  智人心  阅读(17)  评论(0)    收藏  举报