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

980 B
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4ca1000cf542c50ffdc 问题349兰顿的蚂蚁 5 problem-349-langtons-ant

--description--

蚂蚁在规则的方格网格上移动,方格网格为黑色或白色。蚂蚁总是朝向一个主要方向(左,右,上或下),并根据以下规则从正方形移动到相邻正方形: - 如果它在黑色方块上它将方形的颜色翻转为白色逆时针旋转90度向前移动一个方格。 - 如果它在白色方块上它将方块的颜色翻转为黑色顺时针旋转90度并向前移动一个方格。

从一个完全是白色的网格开始在蚂蚁1018次移动后有多少个方块是黑色的

--hints--

euler349()应该返回115384615384614940。

assert.strictEqual(euler349(), 115384615384614940);

--seed--

--seed-contents--

function euler349() {

  return true;
}

euler349();

--solutions--

// solution required