56 lines
1.7 KiB
Markdown
56 lines
1.7 KiB
Markdown
---
|
||
id: 5900f4431000cf542c50ff56
|
||
challengeType: 5
|
||
title: 'Problem 215: Crack-free Walls'
|
||
videoUrl: ''
|
||
localeTitle: 'Проблема 215: стены без трещин'
|
||
---
|
||
|
||
## Description
|
||
<section id="description"> Рассмотрим проблему строительства стены из кирпичей 2 × 1 и 3 × 1 (горизонтальные × вертикальные размеры), так что для дополнительной прочности промежутки между горизонтально смежными кирпичами никогда не выстраиваются в ряд последовательно, то есть никогда не образуют «бегущую» трещина". <p> Например, следующая стена 9 × 3 неприемлема из-за бегущей трещины, показанной красным: </p><p> Существует восемь способов формирования свободной от трещины стенки 9 × 3, записанной W (9,3) = 8. </p><p> Вычислить W (32,10). </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler215()</code> должен вернуть 806844323190414.
|
||
testString: 'assert.strictEqual(euler215(), 806844323190414, "<code>euler215()</code> should return 806844323190414.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler215() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler215();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|