freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-284-steady-squares.md

65 lines
1.5 KiB
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: 5900f4891000cf542c50ff9b
challengeType: 5
videoUrl: ''
title: 问题284平稳正方形
---
## Description
<section id="description">
十进制编号系统中的3位数字376是具有特殊属性的数字的示例该属性的平方以相同的数字结尾3762 =141376。让我们将具有此属性的数字称为稳定平方。
在其他编号系统中也可以看到稳定的正方形。 在基数14的编号系统中三位数c37也是一个稳定的正方形c372 = aa0c37并且在同一编号系统中其位数之和为c + 3 + 7 = 18。 字母abc和d以类似于十六进制编号系统的方式分别用于10、11、12和13位数字。
对于1≤n≤9在基数14的编号系统中所有n位稳定正方形的位总和为2d8十进制582。 不允许以0开头的稳定正方形。
在基数为14的编号系统中找到所有n位稳定正方形的位总和
1≤n≤10000十进制并在基数为14的系统中根据需要使用小写字母给出答案。
</section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler284()</code>应该返回5a411d7b。
testString: assert.strictEqual(euler284(), '5a411d7b');
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler284() {
// Good luck!
return true;
}
euler284();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>