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

953 B
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f5081000cf542c510019 问题411上坡路径 5 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。

assert.strictEqual(euler411(), 9936352);

--seed--

--seed-contents--

function euler411() {

  return true;
}

euler411();

--solutions--

// solution required