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

998 B
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4bd1000cf542c50ffce 问题335收集豆子 5 problem-335-gathering-the-beans

--description--

每当彼得感到无聊时他都会放一些碗每个碗里都放一个豆子。在此之后他将所有的豆子从一个碗中取出然后顺时针将它们逐一放入碗中。他重复这一点从碗里开始扔掉最后一根豆子直到最初的情况再次出现。例如有5个碗他的行为如下

所以有5个碗需要Peter 15的动作才能恢复到初始状态。

设Mx表示从x碗开始返回初始状态所需的移动次数。因此M5= 15.还可以证实M100= 10920。

找到M2k + 1。给出你的答案模数79。

--hints--

euler335()应返回5032316。

assert.strictEqual(euler335(), 5032316);

--seed--

--seed-contents--

function euler335() {

  return true;
}

euler335();

--solutions--

// solution required