* 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>
980 B
980 B
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