* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
39 lines
881 B
Markdown
39 lines
881 B
Markdown
---
|
||
id: 5900f4f21000cf542c510004
|
||
title: 问题389:柏拉图式骰子
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-389-platonic-dice
|
||
---
|
||
|
||
# --description--
|
||
|
||
抛出一个无偏的单面4面模具,并注明其值T.T无偏见的6面骰子被抛出并且它们的分数加在一起。记录总和C.C抛出无偏见的8面骰子并将它们的分数加在一起。记录总和O.O无偏见的12面骰子被投掷并且他们的分数被加在一起。记录总和D.D抛出无偏的20面骰子并将它们的分数加在一起。总和,我,注意到。找出I的方差,并将答案四舍五入到小数点后4位。
|
||
|
||
# --hints--
|
||
|
||
`euler389()`应该返回2406376.3623。
|
||
|
||
```js
|
||
assert.strictEqual(euler389(), 2406376.3623);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler389() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler389();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|