* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
45 lines
1.3 KiB
Markdown
45 lines
1.3 KiB
Markdown
---
|
||
id: 5900f4891000cf542c50ff9b
|
||
title: 问题284:平稳正方形
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-284-steady-squares
|
||
---
|
||
|
||
# --description--
|
||
|
||
十进制编号系统中的3位数字376是具有特殊属性的数字的示例,该属性的平方以相同的数字结尾:3762 =141376。让我们将具有此属性的数字称为稳定平方。
|
||
|
||
在其他编号系统中也可以看到稳定的正方形。 在基数14的编号系统中,三位数c37也是一个稳定的正方形:c372 = aa0c37,并且在同一编号系统中,其位数之和为c + 3 + 7 = 18。 字母a,b,c和d以类似于十六进制编号系统的方式分别用于10、11、12和13位数字。
|
||
|
||
对于1≤n≤9,在基数14的编号系统中,所有n位稳定正方形的位总和为2d8(十进制582)。 不允许以0开头的稳定正方形。
|
||
|
||
在基数为14的编号系统中找到所有n位稳定正方形的位总和 1≤n≤10000(十进制),并在基数为14的系统中根据需要使用小写字母给出答案。
|
||
|
||
# --hints--
|
||
|
||
`euler284()`应该返回5a411d7b。
|
||
|
||
```js
|
||
assert.strictEqual(euler284(), '5a411d7b');
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler284() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler284();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|