56 lines
1.7 KiB
Markdown
56 lines
1.7 KiB
Markdown
---
|
||
id: 5900f4391000cf542c50ff4c
|
||
challengeType: 5
|
||
title: 'Problem 205: Dice Game'
|
||
videoUrl: ''
|
||
localeTitle: 'Проблема 205: игра в кости'
|
||
---
|
||
|
||
## Description
|
||
<section id="description"> У Питера есть девять четырехсторонних (пирамидальных) кубиков, каждая из которых имеет лица с номерами 1, 2, 3, 4. Колин имеет шесть шестисторонних (кубических) кубиков, каждый из которых имеет лица с номерами 1, 2, 3, 4, 5, 6. <p> Питер и Колин бросают свои кости и сравнивают итоговые суммы: самые высокие итоговые победы. Результат - ничья, если итоговые значения равны. </p><p> Какова вероятность того, что Пирамидальный Пит победит Кубический Колин? Дайте свой ответ округленным до семи знаков после запятой в форме 0.abcdefg </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler205()</code> должен вернуть 0.5731441.
|
||
testString: 'assert.strictEqual(euler205(), 0.5731441, "<code>euler205()</code> should return 0.5731441.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler205() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler205();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|