本文共 1014 字,大约阅读时间需要 3 分钟。
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #include 14 #include 15 #include 16 #define x first17 #define y second18 #define pb push_back19 #define mp make_pair20 #define lson l,m,rt*221 #define rson m+1,r,rt*2+122 #define mt(A,B) memset(A,B,sizeof(A))23 #define mod 100000000724 using namespace std;25 typedef long long LL;26 const double PI = acos(-1);27 const int N=2e5+10;28 const int inf = 0x3f3f3f3f;29 const LL INF=0x3f3f3f3f3f3f3f3fLL;30 //已知圆锥的表面积S求最大的体积:V=S*sqrt(S/(72*PI))31 int main()32 {33 #ifdef Local34 freopen("data.txt","r",stdin);35 #endif36 double n;37 cin>>n;38 printf("%lf\n",n*sqrt(n/(72*PI)));39 #ifdef Local40 cerr << "time: " << (LL) clock() * 1000 / CLOCKS_PER_SEC << " ms" << endl;41 #endif42 }
转载于:https://www.cnblogs.com/27sx/p/6264564.html