使徒袭来
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200824014821308.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQzNDA5NTYw,size_16,color_FFFFFF,t_70#pic_center)
参考均值不等式
得到:
3
×
x
1
x
2
x
3
3
≤
x
1
+
x
2
+
x
3
3\times\sqrt[3]{x_1x_2x_3}\leq x_1+x_2+x_3
3×3x1x2x3
≤x1+x2+x3
最低为
3
×
n
3
3\times\sqrt[3]n
3×3n
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int n;
int main(){
cin>>n;
printf("%.3f",3*pow(n,1.0/3));
return 0;
}