56 lines
1.1 KiB
Markdown
56 lines
1.1 KiB
Markdown
|
---
|
||
|
id: 5900f4d01000cf542c50ffe3
|
||
|
challengeType: 5
|
||
|
title: 'Problem 356: Largest roots of cubic polynomials'
|
||
|
videoUrl: ''
|
||
|
localeTitle: 'Задача 356: Крупнейшие корни кубических многочленов'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id="description"> Пусть an - наибольший вещественный корень многочлена g (x) = x3 - 2n · x2 + n. Например, a2 = 3.86619826 ... <p> Найдите последние восемь цифр. </p><p> Примечание: представляет функцию пола. </p></section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id="instructions">
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: ''
|
||
|
testString: 'assert.strictEqual(euler356(), 28010159, "<code>euler356()</code> should return 28010159.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler356() {
|
||
|
// Good luck!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler356();
|
||
|
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|