Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-91-right-triangles-with-integer-coordinates.russian.md

58 lines
1.4 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: 5900f3c71000cf542c50feda
challengeType: 5
title: 'Problem 91: Right triangles with integer coordinates'
forumTopicId: 302208
localeTitle: 'Задача 91: Прямые треугольники с целыми координатами'
---
## Description
<section id='description'>
Точки P (x1, y1) и Q (x2, y2) нанесены на целые координаты и соединяются с началом O (0,0) с образованием ΔOPQ. <p> Есть ровно четырнадцать треугольников, содержащих прямой угол, который может быть сформирован, когда каждая координата находится между 0 и 2 включительно; то есть 0 ≤ x1, y1, x2, y2 ≤ 2. </p><p> Учитывая, что 0 ≤ x1, y1, x2, y2 ≤ 50, сколько правых треугольников может быть сформировано? </p>
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler91()</code> should return 14234.
testString: assert.strictEqual(euler91(), 14234);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler91() {
// Good luck!
return true;
}
euler91();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>