freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-171-finding-numbers...

56 lines
956 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4181000cf542c50ff2a
challengeType: 5
videoUrl: ''
title: 问题171找到数字的平方和为正方形的数字
---
## Description
<section id="description">对于正整数n令fn为n的数字在基数10中的平方和例如f3= 32 = 9f25= 22 + 52 = 4 + 25 = 29f442= 42 + 42 + 22 = 16 + 16 + 4 = 36找到所有n的总和的最后九位数0 &lt;n &lt;1020使得fn是一个完美的平方。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler171()</code>应该返回142989277。
testString: assert.strictEqual(euler171(), 142989277);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler171() {
// Good luck!
return true;
}
euler171();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>