* 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>
41 lines
655 B
Markdown
41 lines
655 B
Markdown
---
|
||
id: 5900f41e1000cf542c50ff31
|
||
title: 问题178:步骤编号
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-178-step-numbers
|
||
---
|
||
|
||
# --description--
|
||
|
||
考虑数字45656.可以看出,45656的每对连续数字的差值为1。每对连续数字的差值为1的数字称为步数。 pandigital数字包含从0到9的每个十进制数字至少一次。
|
||
|
||
有多少pandigital步数小于1040?
|
||
|
||
# --hints--
|
||
|
||
`euler178()`应该返回126461847755。
|
||
|
||
```js
|
||
assert.strictEqual(euler178(), 126461847755);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler178() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler178();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|