#include <iostream>
#include <cmath>
#include <vector>
#include <iomanip>
using namespace std;
#define PI 3.1415926539
//const double PI = acos(-1.0);
//谢谢博友文章
int main()
{
vector<double> jg;
while(1)
{
int a,b;
cin>>a>>b;
if((a==0)&&(b==0))
{
break;
}
jg.push_back(pow(a*a*a-(6*b)/PI,1.0/3));
}
cout <<setprecision(3) <<std::fixed;
for(int i=0;i<jg.size();i++)
{
cout<<jg[i]<<endl;
}
return 0;
}
POJ 2405 Beavergnaw G++
最新推荐文章于 2020-03-07 03:13:43 发布