freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-190-maximising-a-weighted-product.md

43 lines
665 B
Markdown
Raw Normal View History

---
id: 5900f42b1000cf542c50ff3d
title: 问题190最大化加权产品
challengeType: 5
videoUrl: ''
dashedName: problem-190-maximising-a-weighted-product
---
# --description--
令Sm =x1x2...xm为正实数的m元组其中x1 + x2 + ... + xm = m其中Pm = x1 \* x22 \* ... \* xmm最大化。
例如,可以验证\[P10] = 4112\[]是整数部分函数)。
求Σ\[Pm]为2≤m≤15。
# --hints--
`euler190()`应该返回371048281。
```js
assert.strictEqual(euler190(), 371048281);
```
# --seed--
## --seed-contents--
```js
function euler190() {
return true;
}
euler190();
```
# --solutions--
```js
// solution required
```