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

1.1 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4fe1000cf542c510010 问题400斐波纳契树游戏 5 problem-400-fibonacci-tree-game

--description--

Fibonacci树是递归定义为的二叉树T0是空树。 T1是只有一个节点的二叉树。 Tk由具有Tk-1和Tk-2作为子节点的根节点组成。

在这样的树上,两个玩家玩外卖游戏。在每个回合中,玩家选择一个节点并删除该节点以及以该节点为根的子树。被迫占用整棵树根节点的玩家输了。

以下是Tk从k = 1到k = 6的第一个回合的第一个玩家的获胜动作。

假设fk是在Tk上播放该游戏时在第一轮游戏中第一玩家的获胜移动的数量第二玩家没有获胜策略的移动

例如f5= 1且f10= 17。

找到f10000。给出答案的最后18位数字。

--hints--

euler400()应返回438505383468410600。

assert.strictEqual(euler400(), 438505383468410600);

--seed--

--seed-contents--

function euler400() {

  return true;
}

euler400();

--solutions--

// solution required