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.0 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4551000cf542c50ff67 问题232比赛 5 problem-232-the-race

--description--

两名玩家分享一个无偏见的硬币并轮流玩“The Race”。在玩家1的回合中他扔了一次硬币如果它出现在Heads他得分为1分;如果它出现Tails他什么都没得分。在玩家2的回合中她选择一个正整数T并将硬币投掷T次如果它出现在所有的头上她得到2T-1分;否则她没有得分。玩家1排在第一位。获胜者是第一个达到100分或更多分。

在每次转弯时玩家2选择硬币投掷的数量T以最大化她获胜的概率。

玩家2获胜的概率是多少

将您的答案四舍五入到0.abcdefgh形式的八位小数。

--hints--

euler232()应返回0.83648556。

assert.strictEqual(euler232(), 0.83648556);

--seed--

--seed-contents--

function euler232() {

  return true;
}

euler232();

--solutions--

// solution required