freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-213-flea-circus.rus...

56 lines
1.4 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: 5900f4411000cf542c50ff54
challengeType: 5
title: 'Problem 213: Flea Circus'
videoUrl: ''
localeTitle: 'Задача 213: Блошиный цирк'
---
## Description
<section id="description"> В 30 × 30 сетках квадратов содержится 900 блох, изначально одна блоха на квадрат. Когда звонит колокол, каждая блоха случайно выбирается на соседний квадрат (обычно 4 варианта, за исключением блох на краю сетки или по углам). <p> Каково ожидаемое количество незанятых квадратов после 50 звонков колокола? Дайте ваш ответ округленным до шести знаков после запятой. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler213()</code> должен вернуть 330.721154.
testString: 'assert.strictEqual(euler213(), 330.721154, "<code>euler213()</code> should return 330.721154.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler213() {
// Good luck!
return true;
}
euler213();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>