freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-283-integer-sided-t...

56 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4881000cf542c50ff9a
challengeType: 5
title: 'Problem 283: Integer sided triangles for which the area * perimeter ratio is integral'
videoUrl: ''
localeTitle: 'Задача 283: Целочисленные односторонние треугольники, для которых отношение площади * периметра является интегральным'
---
## Description
<section id="description"> Рассмотрим треугольник со сторонами 6, 8 и 10. Можно видеть, что периметр и площадь равны 24. Таким образом, отношение площади / периметра равно 1. Рассмотрим также треугольник со сторонами 13, 14 и 15. Периметр равен 42, а площадь равна 84. Таким образом, для этого треугольника отношение площади / периметра равно 2. <p> Найдите сумму периметров всех целых односторонних треугольников, для которых отношение площади / периметра равно положительным целым, не превышающим 1000. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler283()</code> должен вернуть 28038042525570324.
testString: 'assert.strictEqual(euler283(), 28038042525570324, "<code>euler283()</code> should return 28038042525570324.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler283() {
// Good luck!
return true;
}
euler283();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>