Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-390-triangles-with-non-rational-sides-and-integral-area.russian.md

56 lines
1.5 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: 5900f4f21000cf542c510005
challengeType: 5
title: 'Problem 390: Triangles with non rational sides and integral area'
videoUrl: ''
localeTitle: 'Задача 390: Треугольники с не рациональными сторонами и целая площадь'
---
## Description
<section id="description"> Рассмотрим треугольник со сторонами √5, √65 и √68. Можно показать, что этот треугольник имеет площадь 9. <p> S (n) - сумма площадей всех треугольников со сторонами √ (1 + b2), √ (1 + c2) и √ (b2 + c2) (для целых положительных чисел b и c), которые имеют интегральную площадь, не превышающую п. </p><p> Пример треугольника имеет b = 2 и c = 8. </p><p> S (106) = 18018206. </p><p> Найти S (1010). </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler390()</code> должен возвращать 2919133642971.
testString: 'assert.strictEqual(euler390(), 2919133642971, "<code>euler390()</code> should return 2919133642971.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler390() {
// Good luck!
return true;
}
euler390();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>