1.1 KiB
1.1 KiB
id, title, challengeType, forumTopicId, dashedName
id | title | challengeType | forumTopicId | dashedName |
---|---|---|---|---|
5900f4391000cf542c50ff4c | 問題 205: サイコロゲーム | 5 | 301846 | problem-205-dice-game |
--description--
ピーターは 4 面サイコロ (ピラミッド型) のサイコロを 9 つ持っており、それぞれの面の数字は 1, 2, 3, 4 です。
コリンは 6 面サイコロ (立方体) を 6 つ持っており、それぞれの面の数字は 1, 2, 3, 4, 5, 6 です。
ピーターとコリンがサイコロを振り、出目の合計を比べ、大きい方が勝ちます。 合計が同じである場合は引き分けです。
ピーター (ピラミッド型) がコリン (立方体) に勝つ確率を求めなさい。 回答は、四捨五入して小数第 7 位まで求め、0.abcdefg の形式にすること。
--hints--
diceGame()
は 0.5731441
を返す必要があります。
assert.strictEqual(diceGame(), 0.5731441);
--seed--
--seed-contents--
function diceGame() {
return true;
}
diceGame();
--solutions--
// solution required