fix(curriculum): clean-up Project Euler 381-400 (#43024)

* fix: clean-up Project Euler 381-400

* fix: missing image extension

* fix: missing subscripts

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
gikf
2021-07-30 16:59:29 +02:00
committed by GitHub
parent 594adf02c1
commit d269909faa
20 changed files with 279 additions and 180 deletions

View File

@ -8,16 +8,24 @@ dashedName: problem-389-platonic-dice
# --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.
An unbiased single 4-sided die is thrown and its value, $T$, is noted.
Find the variance of I, and give your answer rounded to 4 decimal places.
$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.
# --hints--
`euler389()` should return 2406376.3623.
`platonicDice()` should return `2406376.3623`.
```js
assert.strictEqual(euler389(), 2406376.3623);
assert.strictEqual(platonicDice(), 2406376.3623);
```
# --seed--
@ -25,12 +33,12 @@ assert.strictEqual(euler389(), 2406376.3623);
## --seed-contents--
```js
function euler389() {
function platonicDice() {
return true;
}
euler389();
platonicDice();
```
# --solutions--