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

47 lines
953 B
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: 5900f5081000cf542c510019
title: 问题411上坡路径
challengeType: 5
videoUrl: ''
dashedName: problem-411-uphill-paths
---
# --description--
设n是正整数。假设坐标xy=2i mod n3i mod n的站点为0≤i≤2n。我们将考虑与同一站点具有相同坐标的站点。
我们希望形成从0,0nn的路径使得x和y坐标永不减少。设Sn是路径可以通过的最大站数。
例如如果n = 22则有11个不同的站并且有效路径最多可以通过5个站。因此S22= 5.下面举例说明了一个最佳路径的例子:
还可以证实S123= 14并且S10000= 48。
求1Σk≤30ΣSk5
# --hints--
`euler411()`应返回9936352。
```js
assert.strictEqual(euler411(), 9936352);
```
# --seed--
## --seed-contents--
```js
function euler411() {
return true;
}
euler411();
```
# --solutions--
```js
// solution required
```