Files
freeCodeCamp/curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-176-right-angled-triangles-that-share-a-cathetus.md

41 lines
1.2 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: 5900f41c1000cf542c50ff2f
title: 'Завдання 176: Прямокутні трикутники з спільним катетом'
challengeType: 5
forumTopicId: 301811
dashedName: problem-176-right-angled-triangles-that-share-a-cathetus
---
# --description--
У кожного з чотирьох прямокутних трикутників із сторонами (9,12,15), (12,16,20), (5,12,13) і (12,35,37), менший катет дорівнює 12. Можна довести, що не існує іншого прямокутного трикутника, у якого довжини сторін це цілі числа, з катетом, що дорівнює 12.
Знайдіть найменше ціле число, яке може бути довжиною катета 47547 різних прямокутних трикутників зі сторонами рівним цілому числу.
# --hints--
`trianglesSharingCathetus()` має повернути `96818198400000`.
```js
assert.strictEqual(trianglesSharingCathetus(), 96818198400000);
```
# --seed--
## --seed-contents--
```js
function trianglesSharingCathetus() {
return true;
}
trianglesSharingCathetus();
```
# --solutions--
```js
// solution required
```