1629 B君的圆锥
基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题 收藏 关注
B君要用一个表面积为S的圆锥将白山云包起来。

B君希望包住的白山云体积尽量大,B君想知道体积最大可以是多少。

注意圆锥的表面积包括底面和侧面。


Input
一行一个整数,表示表面积S。(1 <= S <= 10^9)
Output
一行一个实数,表示体积。


Input示例
8
Output示例
1.504506

公式为:
sqrt(s*s*s)/(6*sqrt(2pi)

#include <bits/stdc++.h>

using namespace std;
#define pi acos(-1)


int main()
{
    double s;
    cin>>s;
    cout<<fixed<<setprecision(6)<<sqrt(s*s*s)/(6*sqrt(2*pi))<<endl;
    return 0;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2021-07-25
  • 2022-12-23
  • 2021-05-14
  • 2021-06-27
猜你喜欢
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-12-05
相关资源
相似解决方案