Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-94-almost-equilateral-triangles.russian.md

56 lines
1.7 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: 5900f3ca1000cf542c50fedd
challengeType: 5
title: 'Problem 94: Almost equilateral triangles'
videoUrl: ''
localeTitle: 'Проблема 94: Почти равносторонние треугольники'
---
## Description
<section id="description"> Нетрудно убедиться, что нет равностороннего треугольника с целыми сторонами длины и целой площадью. Однако почти равносторонний треугольник 5-5-6 имеет площадь 12 квадратных единиц. Мы определим почти равносторонний треугольник как треугольник, для которого две стороны равны, а третий отличается не более чем на одну единицу. Найдите сумму периметров всех почти равносторонних треугольников с целыми боковыми длинами и площадью и периметры которых не превышают одного миллиарда (1 000 000 000). </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler94()</code> должен вернуть 518408346.
testString: 'assert.strictEqual(euler94(), 518408346, "<code>euler94()</code> should return 518408346.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler94() {
// Good luck!
return true;
}
euler94();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>