Files

45 lines
1.6 KiB
Markdown
Raw Permalink 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: 5900f3e21000cf542c50fef4
title: 'Завдання 117: Червоні, зелені та сині комірки'
challengeType: 5
forumTopicId: 301743
dashedName: problem-117-red-green-and-blue-tiles
---
# --description--
Використовуючи комбінацію чорних квадратних комірок і довгастих комірок, вибраних з: червоних комірок розміром дві одиниці, зелених комірок розміром три одиниці та синіх комірок розміром чотири одиниці, можна створити ряд довжиною п'ять одиниць рівно п'ятнадцятьма різними способами.
<img class="img-responsive center-block" alt="Можливі способи розміщення червоних, зелених і синіх довгастих комірок ряду довжиною в п'ять одиниць" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-and-blue-tiles.png" style="background-color: white; padding: 10px;" />
Скількома способами можна викласти ряд довжиною 50 одиниць?
**Примітка**: Це пов'язано з завданням 116.
# --hints--
`redGreenBlueTilesTwo()` should return `100808458960497`.
```js
assert.strictEqual(redGreenBlueTilesTwo(), 100808458960497);
```
# --seed--
## --seed-contents--
```js
function redGreenBlueTilesTwo() {
return true;
}
redGreenBlueTilesTwo();
```
# --solutions--
```js
// solution required
```