56 lines
1.6 KiB
Markdown
56 lines
1.6 KiB
Markdown
---
|
||
id: 5900f5411000cf542c510053
|
||
challengeType: 5
|
||
title: 'Problem 469: Empty chairs'
|
||
videoUrl: ''
|
||
localeTitle: 'Задача 469: Пустые стулья'
|
||
---
|
||
|
||
## Description
|
||
<section id="description"> В комнате N стулья размещаются вокруг круглого стола. Рыцари входят в комнату один за другим и выбирают случайным образом свободный пустой стул. Чтобы иметь достаточно локтевой комнаты, рыцари всегда оставляют по крайней мере одно пустое стул между собой. <p> Когда нет подходящих стульев, определяется доля С пустых стульев. Мы также определяем E (N) как ожидаемое значение C. Мы можем проверить, что E (4) = 1/2 и E (6) = 5/9. </p><p> Найдите E (1018). Дайте свой ответ округленным до четырнадцати знаков после запятой в форме 0.abcdefghijklmn. </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: ''
|
||
testString: 'assert.strictEqual(euler469(), 0.56766764161831, "<code>euler469()</code> should return 0.56766764161831.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler469() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler469();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|