#include "iostream"
#include "cmath"
#include "iomanip"
using namespace std;
const double pi = 3.1415927;
int main()
{
double D, V, d, temp;
while (cin >> D >> V && D && V)
{
temp = D * D * D - 6 * V / pi;
d = pow(temp, (1.0 / 3.0));
cout.setf(ios::fixed);
cout << setprecision(3) << d << endl;
}
}
zoj 1904 Beavergnaw
最新推荐文章于 2024-08-22 21:45:19 发布