使徒袭来
使徒袭来
https://ac.nowcoder.com/acm/problem/209794
题目
给定一个整数 ,表示 3 个正实数的乘积,求这 3 个正实数的最小和。
解题思路
根据基本不等式,有:。
所以 的最小值是
。
C++代码
#include<cstdio>
#include<cmath>
using namespace std;
int main(){
int n;
scanf("%d", &n);
double ans = 3 * pow(n, 1/3.0);
printf("%.3lf", ans);
return 0;
}
小天才公司福利 1316人发布
