Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-190-maximising-a-weighted-product.md
Oliver Eyton-Williams dec409a4bd fix: s/localeTitle/title/g
2020-10-06 23:10:08 +05:30

884 B
Raw Blame History

id, challengeType, videoUrl, title
id challengeType videoUrl title
5900f42b1000cf542c50ff3d 5 问题190最大化加权产品

Description

令Sm =x1x2...xm为正实数的m元组其中x1 + x2 + ... + xm = m其中Pm = x1 * x22 * ... * xmm最大化。

例如,可以验证[P10] = 4112[]是整数部分函数)。

求Σ[Pm]为2≤m≤15。

Instructions

Tests

tests:
  - text: <code>euler190()</code>应该返回371048281。
    testString: assert.strictEqual(euler190(), 371048281);

Challenge Seed

function euler190() {
  // Good luck!
  return true;
}

euler190();

Solution

// solution required

/section>