原题链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1629
思路:推导公式,大佬博客
AC代码:
#include<bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const double PI = acos(-1.0);
int main() {
int s;
scanf("%d", &s);
double v = 1.0*s / 3 * sqrt(s / 8.0 / PI);
printf("%.6lf\n", v);
return 0;
}