题目
给定一个整数 ,表示 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;
} 
京公网安备 11010502036488号