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

49 lines
1.1 KiB
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: 5900f5371000cf542c51004a
title: 问题459翻转游戏
challengeType: 5
videoUrl: ''
dashedName: problem-459-flipping-game
---
# --description--
翻转游戏是在N×N方板上玩的双人游戏。每个方块包含一面白色和一面黑色的圆盘。游戏开始时所有磁盘都显示白色。
转弯包括翻转具有以下属性的矩形中的所有磁盘矩形的右上角包含一个白色圆盘矩形宽度是一个完美的正方形1,4,9,16...矩形高度为三角形数字1,3,6,10 ......
球员轮流转换。玩家通过将网格全黑变为胜利。
假设完美游戏让WN为N×N板上第一个玩家的获胜动作数所有盘都是白色的。 W1= 1W2= 0W5= 8W102= 31395。
对于N = 5第一个玩家的八个获胜第一步是
找到W106
# --hints--
`euler459()`应该返回3996390106631。
```js
assert.strictEqual(euler459(), 3996390106631);
```
# --seed--
## --seed-contents--
```js
function euler459() {
return true;
}
euler459();
```
# --solutions--
```js
// solution required
```