Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-75-singular-integer-right-triangles.russian.md

58 lines
2.0 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: 5900f3b71000cf542c50feca
challengeType: 5
title: 'Problem 75: Singular integer right triangles'
forumTopicId: 302188
localeTitle: 'Задача 75: Сингулярные целые правые треугольники'
---
## Description
<section id='description'>
Оказывается, что 12 см - это самая маленькая длина провода, которая может быть согнута, чтобы сформировать целочисленный прямоугольный треугольник в одном направлении, но есть еще много примеров. 12 см: (3,4,5) 24 см: (6,8,10) 30 см: (5,12,13) 36 см: (9,12,15) 40 см: (8,15,17) 48 см: (12,16,20) Напротив, некоторые длины проволоки, например 20 см, не могут быть согнуты, чтобы образовать целочисленный треугольник с прямым углом, а другие длины позволяют найти более одного решения; например, используя 120 см, можно сформировать ровно три разных целочисленных прямоугольных треугольника. 120 см: (30,40,50), (20,48,52), (24,45,51) Учитывая, что L - длина провода, для количества значений L ≤ 1 500 000 может быть ровно одно целое одностороннее право треугольный треугольник?
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler75()</code> should return 161667.
testString: assert.strictEqual(euler75(), 161667);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler75() {
// Good luck!
return true;
}
euler75();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>