freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-269-polynomials-wit...

56 lines
1.2 KiB
Markdown
Raw Normal View History

---
id: 5900f4791000cf542c50ff8c
challengeType: 5
title: 'Problem 269: Polynomials with at least one integer root'
videoUrl: ''
localeTitle: 问题269具有至少一个整数根的多项式
---
## Description
<section id="description">多项式Px的根或零是等式Px= 0的解。将Pn定义为其系数是n的数字的多项式。例如P5703x= 5x3 + 7x2 + 3。 <p>我们可以看到Pn0是n的最后一位Pn1是n的位数之和Pn10是n本身。定义Zk作为正整数的数量n 不超过多项式Pn具有至少一个整数根的k。 </p><p>可以证实Z100 000是14696。 </p><p>什么是Z1016 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler269()</code>应该返回1311109198529286。
testString: 'assert.strictEqual(euler269(), 1311109198529286, "<code>euler269()</code> should return 1311109198529286.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler269() {
// Good luck!
return true;
}
euler269();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>