Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-264-triangle-centres.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: 5900f4751000cf542c50ff87
challengeType: 5
title: 'Problem 264: Triangle Centres'
videoUrl: ''
localeTitle: 'Проблема 264: Треугольные центры'
---
## Description
<section id="description"> Рассмотрим все треугольники, имеющие: все их вершины на точках решетки. Циркуцентр в начале координат О. Ортоцентрический в точке Н (5, 0). Существует девять таких треугольников, имеющих периметр ≤ 50. Перечислены и показаны в порядке возрастания их периметра: <p> A (-4, 3), B (5, 0), C (4, -3) A (4, 3), B (5, 0), C (-4, -3) A (-3, 4 ), B (5, 0), C (3, -4) A (3, 4), B (5, 0), C (-3, -4) A (0, 5), B (5, 0 ), C (0, -5) A (1, 8), B (8, -1), C (-4, -7) A (8, 1), B (1, -8), C (- 4, 7) A (2, 9), B (9, -2), C (-6, -7) A (9, 2), B (2, -9), C (-6, 7) </p><p> Сумма их периметров, округленная до четырех знаков после запятой, составляет 291,0089. </p><p> Найдите все такие треугольники с периметром ≤ 105. Введите в качестве ответа сумму их периметров, округленных до четырех знаков после запятой. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler264()</code> должен вернуться 2816417.1055.
testString: 'assert.strictEqual(euler264(), 2816417.1055, "<code>euler264()</code> should return 2816417.1055.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler264() {
// Good luck!
return true;
}
euler264();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>