Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-389-platonic-dice.md
2022-01-23 00:08:20 +09:00

1.2 KiB

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4f21000cf542c510004 問題 389: プラトンのサイコロ 5 302053 problem-389-platonic-dice

--description--

偏りのない 4 面サイコロを 1 個振り、出た目 T を書き留めます。

次に、偏りのない 6 面サイコロを T 個振り、出た目を合計します。 その合計 C を書き留めます。

続いて、偏りのない 8 面サイコロを C 個振り、出た目を合計します。 その合計 O を書き留めます。

さらに、偏りのない 12 面サイコロを O 個振り、出た目を合計します。 その合計 D を書き留めます。

最後に、偏りのない 20 面サイコロを D 個振り、出た目を合計します。 その合計 I を書き留めます。

I の分散を求め、四捨五入して小数第 4 位まで示しなさい。

--hints--

platonicDice()2406376.3623 を返す必要があります。

assert.strictEqual(platonicDice(), 2406376.3623);

--seed--

--seed-contents--

function platonicDice() {

  return true;
}

platonicDice();

--solutions--

// solution required