* 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>
1.0 KiB
1.0 KiB
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