freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-389-platonic-dice.c...

56 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4f21000cf542c510004
challengeType: 5
title: 'Problem 389: Platonic Dice'
videoUrl: ''
localeTitle: 问题389柏拉图式骰子
---
## Description
<section id="description">抛出一个无偏的单面4面模具并注明其值T.T无偏见的6面骰子被抛出并且它们的分数加在一起。记录总和C.C抛出无偏见的8面骰子并将它们的分数加在一起。记录总和O.O无偏见的12面骰子被投掷并且他们的分数被加在一起。记录总和D.D抛出无偏的20面骰子并将它们的分数加在一起。总和注意到。找出I的方差并将答案四舍五入到小数点后4位。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler389()</code>应该返回2406376.3623。
testString: 'assert.strictEqual(euler389(), 2406376.3623, "<code>euler389()</code> should return 2406376.3623.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler389() {
// Good luck!
return true;
}
euler389();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>