Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-240-top-dice.md
2022-04-02 17:46:30 +09:00

1018 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f45d1000cf542c50ff6f 問題 240: サイコロの目の上位 5 301887 problem-240-top-dice

--description--

6 面のサイコロ (各面の数字は 1 から 6) を 5 個振り、出目の上位 3 個の和が 15 になるケースは 1111 通りあります。 その例をいくつか下に示します。

$$\begin{align} & D_1,D_2,D_3,D_4,D_5 = 4,3,6,3,5 \\ & D_1,D_2,D_3,D_4,D_5 = 4,3,3,5,6 \\ & D_1,D_2,D_3,D_4,D_5 = 3,3,3,6,6 \\ & D_1,D_2,D_3,D_4,D_5 = 6,6,3,3,3 \end{align}$$

12 面のサイコロ (各面の数字は 1 から 12) を 20 個振り、出目の上位 10 個の和が 70 になるケースは何通りありますか?

--hints--

topDice()7448717393364182000 を返す必要があります。

assert.strictEqual(topDice(), 7448717393364182000);

--seed--

--seed-contents--

function topDice() {

  return true;
}

topDice();

--solutions--

// solution required