chore(i18n,learn): processed translations (#44851)
This commit is contained in:
@ -0,0 +1,44 @@
|
||||
---
|
||||
id: 5900f4391000cf542c50ff4c
|
||||
title: '問題 205: サイコロゲーム'
|
||||
challengeType: 5
|
||||
forumTopicId: 301846
|
||||
dashedName: 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` を返す必要があります。
|
||||
|
||||
```js
|
||||
assert.strictEqual(diceGame(), 0.5731441);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
function diceGame() {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
diceGame();
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
||||
```js
|
||||
// solution required
|
||||
```
|
Reference in New Issue
Block a user