Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-356-largest-roots-of-cubic-polynomials.md

45 lines
824 B
Markdown
Raw Permalink Normal View History

---
id: 5900f4d01000cf542c50ffe3
title: '問題 356: 三次多項式の最大根'
challengeType: 5
forumTopicId: 302016
dashedName: problem-356-largest-roots-of-cubic-polynomials
---
# --description--
$a_n$ を、多項式 $g(x) = x^3 - 2^n \times x^2 + n$ の最大の実根とします。
例: $a_2 = 3.86619826\ldots$
$\displaystyle\sum_{i = 1}^{30} \lfloor {a_i}^{987654321}\rfloor$ の下位 8 桁を求めなさい。
**注:** $\lfloor a\rfloor$ は床関数を表します。
# --hints--
`rootsOfCubicPolynomials()``28010159` を返す必要があります。
```js
assert.strictEqual(rootsOfCubicPolynomials(), 28010159);
```
# --seed--
## --seed-contents--
```js
function rootsOfCubicPolynomials() {
return true;
}
rootsOfCubicPolynomials();
```
# --solutions--
```js
// solution required
```