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

56 lines
884 B
Markdown
Raw Normal View History

---
id: 5900f42b1000cf542c50ff3d
challengeType: 5
videoUrl: ''
2020-10-01 15:54:21 +00:00
title: 问题190最大化加权产品
---
## Description
<section id="description">令Sm =x1x2...xm为正实数的m元组其中x1 + x2 + ... + xm = m其中Pm = x1 * x22 * ... * xmm最大化。 <p>例如,可以验证[P10] = 4112[]是整数部分函数)。 </p><p>求Σ[Pm]为2≤m≤15。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler190()</code>应该返回371048281。
testString: assert.strictEqual(euler190(), 371048281);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler190() {
// Good luck!
return true;
}
euler190();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>