// 1904 海狸咬木
// 一道简单的数学题
#include <iostream>
#include <math.h>
#include <iomanip>
using namespace std;
#define Pi 3.1415926

 


int main()
{

    double D,V;
    double d;
    while(cin>>D>>V && !(D==0&&V==0))
    {
        d=pow(D,3)-6*V/Pi;
        d=pow(d,1.0/3.0);                      //pow(a,b)里面的b需要是double类型
        cout<<setiosflags(ios::fixed)<<setprecision(3)<<d<<endl;
    }
    return 0;
}

相关文章:

  • 2021-05-28
  • 2021-08-13
  • 2021-12-21
  • 2022-12-23
  • 2021-11-23
  • 2021-06-11
  • 2021-10-01
猜你喜欢
  • 2021-11-19
  • 2021-12-19
  • 2022-12-23
  • 2021-12-11
  • 2021-04-06
  • 2022-12-23
  • 2021-11-07
相关资源
相似解决方案