Files
freeCodeCamp/curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-173-using-up-to-one-million-tiles-how-many-different-hollow-square-laminae-can-be-formed.md

45 lines
1.8 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: 5900f41a1000cf542c50ff2c
title: >-
Завдання 173: Скільки різних квадратних рамок можна сформувати з близько мільйона плиток?
challengeType: 5
forumTopicId: 301808
dashedName: >-
problem-173-using-up-to-one-million-tiles-how-many-different-hollow-square-laminae-can-be-formed
---
# --description--
Нехай квадратна рамка — це квадратний контур з квадратним «отвором», а горизонтальні та вертикальні сторони — симетричні. Наприклад, з тридцяти двох квадратних плиток можна сформувати дві різні квадратні рамки:
<img class="img-responsive center-block" alt="дві квадратні рамки з отворами 2х2 та 7х7" src="https://cdn.freecodecamp.org/curriculum/project-euler/using-up-to-one-million-tiles-how-many-different-hollow-square-laminae-can-be-formed.gif" style="background-color: white; padding: 10px;" />
З сотні плиток можна сформувати сорок одну різну квадратну пластинку, при цьому необов'язково використовувати всі плитки одночасно. Скільки різних квадратних рамок можна утворити за допомогою одного мільйона плиток?
# --hints--
`differentHollowSquareLaminae()` має повернути `1572729`.
```js
assert.strictEqual(differentHollowSquareLaminae(), 1572729);
```
# --seed--
## --seed-contents--
```js
function differentHollowSquareLaminae() {
return true;
}
differentHollowSquareLaminae();
```
# --solutions--
```js
// solution required
```