mrugesh 22afc2a0ca feat(learn): python certification projects (#38216)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
2020-05-27 13:19:08 +05:30

1.2 KiB

id, challengeType, isHidden, title, forumTopicId
id challengeType isHidden title forumTopicId
5900f4f21000cf542c510004 5 false Problem 389: Platonic Dice 302053

Description

An unbiased single 4-sided die is thrown and its value, T, is noted.T unbiased 6-sided dice are thrown and their scores are added together. The sum, C, is noted.C unbiased 8-sided dice are thrown and their scores are added together. The sum, O, is noted.O unbiased 12-sided dice are thrown and their scores are added together. The sum, D, is noted.D unbiased 20-sided dice are thrown and their scores are added together. The sum, I, is noted. Find the variance of I, and give your answer rounded to 4 decimal places.

Instructions

Tests

tests:
  - text: <code>euler389()</code> should return 2406376.3623.
    testString: assert.strictEqual(euler389(), 2406376.3623);

Challenge Seed

function euler389() {
  // Good luck!
  return true;
}

euler389();

Solution

// solution required