Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-114-counting-block-combinations-i.russian.md

58 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f3e01000cf542c50fef2
challengeType: 5
title: 'Problem 114: Counting block combinations I'
forumTopicId: 301740
localeTitle: 'Задача 114: Комбинации счетных блоков I'
---
## Description
<section id='description'>
Строка длиной семь единиц имеет красные блоки с минимальной длиной в три единицы, размещенные на ней, так что любые два красных блока (которые допускаются к разным длинам) разделены по меньшей мере одним черным квадратом. Есть ровно семнадцать способов сделать это. <p> Сколько путей может быть заполнено длиной в пятьдесят единиц? ПРИМЕЧАНИЕ. Хотя приведенный выше пример не дает возможности, в общем, разрешается смешивать размеры блоков. Например, в строке длиной восемь единиц можно использовать красный (3), черный (1) и красный (4). </p>
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler114()</code> should return 16475640049.
testString: assert.strictEqual(euler114(), 16475640049);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler114() {
// Good luck!
return true;
}
euler114();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>