* 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>
1008 B
1008 B
id, title, challengeType, videoUrl, dashedName
id | title | challengeType | videoUrl | dashedName |
---|---|---|---|---|
5900f44f1000cf542c50ff61 | 问题227:大通 | 5 | problem-227-the-chase |
--description--
“追逐”是一个玩两个骰子和偶数玩家的游戏。
球员坐在桌子旁;游戏开始于两个相对的玩家,每个玩家有一个骰子。在每个回合中,两个玩家都会掷骰子。如果一名球员掷出一个1,他将骰子传给左边的邻居;如果他掷出一个6,他就把骰子传给右边的邻居;否则,他会为下一个回合保留死亡。游戏结束时,一个玩家在滚动并通过后都有两个骰子;那个玩家失败了。
在拥有100名玩家的游戏中,游戏持续的预期轮数是多少?将您的答案四舍五入到十位有效数字。
--hints--
euler227()
应返回3780.618622。
assert.strictEqual(euler227(), 3780.618622);
--seed--
--seed-contents--
function euler227() {
return true;
}
euler227();
--solutions--
// solution required