56 lines
1.4 KiB
Markdown
56 lines
1.4 KiB
Markdown
|
---
|
||
|
id: 5900f50f1000cf542c510021
|
||
|
challengeType: 5
|
||
|
title: 'Problem 418: Factorisation triples'
|
||
|
videoUrl: ''
|
||
|
localeTitle: 'Проблема 418: тройная факторизация'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id="description"> Пусть n - положительное целое число. Целочисленная тройка (a, b, c) называется тройкой факторизации n, если: 1 ≤ a ≤ b ≤ c a · b · c = n. <p> Определим f (n) как a + b + c для тройки факторизации (a, b, c) of n, которая минимизирует c / a. Можно показать, что эта тройка уникальна. </p><p> Например, f (165) = 19, f (100100) = 142 и f (20!) = 4034872. </p><p> Найти f (43!). </p></section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id="instructions">
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: <code>euler418()</code> должен вернуть 1177163565297340400.
|
||
|
testString: 'assert.strictEqual(euler418(), 1177163565297340400, "<code>euler418()</code> should return 1177163565297340400.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler418() {
|
||
|
// Good luck!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler418();
|
||
|
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|