Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* 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>
2021-01-12 19:31:00 -07:00

53 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4601000cf542c50ff72
title: 问题244滑块
challengeType: 5
videoUrl: ''
dashedName: problem-244-sliders
---
# --description--
你可能知道游戏Fifteen Puzzle。在这里我们有7个红色瓷砖和8个蓝色瓷砖而不是编号瓷砖。移动由方块的大写初始值表示其中区块滑动例如从配置S开始通过序列LULUR我们到达配置E
SE
对于每个路径,其校验和由(伪代码)计算:
checksum = 0 checksum =checksum×243 + m1mod 100 000 007 checksum =checksum×243 + m2mod 100 000 007 ... checksum =checksum×243 + mnmod 100 000 007其中mk是ASCII值移动序列中的第k个字母和移动的ASCII值为
L76R82U85D68
对于上面给出的序列LULUR校验和将是19761398.现在从配置S开始找到达到配置T的所有最短路径。
ST
具有最小长度的路径的所有校验和的总和是多少?
# --hints--
`euler244()`应该返回96356848。
```js
assert.strictEqual(euler244(), 96356848);
```
# --seed--
## --seed-contents--
```js
function euler244() {
return true;
}
euler244();
```
# --solutions--
```js
// solution required
```