Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-147-rectangles-in-cross-hatched-grids.russian.md

56 lines
1.9 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: 5900f3ff1000cf542c50ff12
challengeType: 5
title: 'Problem 147: Rectangles in cross-hatched grids'
videoUrl: ''
localeTitle: 'Задача 147: Прямоугольники в сетчатых сетках'
---
## Description
<section id="description"> В сетке с поперечным вырезом 3x2 в пределах этой сетки может быть расположено в общей сложности 37 различных прямоугольников, как указано в эскизе. <p> Существует 5 сеток размером меньше 3x2, важны вертикальные и горизонтальные размеры, то есть 1x1, 2x1, 3x1, 1x2 и 2x2. Если каждый из них заштрихован, в пределах меньших сеток может быть расположено следующее количество различных прямоугольников: 1x1: 1 2x1: 4 3x1: 8 1x2: 4 2x2: 18 </p><p> Добавив их к 37 сетке 3x2, в общей сложности 72 разных прямоугольника могут быть расположены в сетках 3x2 и меньших. </p><p> Сколько различных прямоугольников могло быть расположено в пределах 47x43 и меньших сетках? </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler147()</code> должен вернуться 846910284.
testString: 'assert.strictEqual(euler147(), 846910284, "<code>euler147()</code> should return 846910284.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler147() {
// Good luck!
return true;
}
euler147();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>