997 B
997 B
id, title, challengeType, forumTopicId, dashedName
id | title | challengeType | forumTopicId | dashedName |
---|---|---|---|---|
5900f42b1000cf542c50ff3d | Завдання 190: Максимізація зваженого продукту | 5 | 301828 | problem-190-maximising-a-weighted-product |
--description--
Нехай S_m = (x_1, x_2, \ldots, x_m)
буде $m$-tuple додатних чисел з x_1 + x_2 + \cdots + x_m = m
, де P_m = x_1 \times {x_2}^2 \times \cdots \times {x_m}^m
максимізовано.
Наприклад, можливо перевірити, що [P_{10}] = 4112
([ ] це функція цілочисельної частини).
Знайдіть \суму {[P_m]}
для 2 ≤ m ≤ 15
.
--hints--
maximisingWeightedProduct()
має видати 371048281
.
assert.strictEqual(maximisingWeightedProduct(), 371048281);
--seed--
--seed-contents--
function maximisingWeightedProduct() {
return true;
}
maximisingWeightedProduct();
--solutions--
// solution required