freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-476-circle-packing-...

58 lines
1.3 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: 5900f5481000cf542c51005b
challengeType: 5
title: 'Problem 476: Circle Packing II'
forumTopicId: 302153
localeTitle: 'Задача 476: Упаковка круга II'
---
## Description
<section id='description'>
Пусть R (a, b, c) - максимальная площадь, покрытая тремя неперекрывающимися окружностями внутри треугольника с длинами ребер a, b и c. Пусть S (n) - среднее значение R (a, b, c) по всем целочисленным триплетам (a, b, c), для которых 1 ≤ a ≤ b ≤ c &lt;a + b ≤ n Вы даны S (2 ) = R (1, 1, 1) ≈ 0.31998, S (5) ≈ 1.25899. Найдите S (1803), округленное до 5 знаков после запятой.
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler476()</code> should return 110242.87794.
testString: assert.strictEqual(euler476(), 110242.87794);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler476() {
// Good luck!
return true;
}
euler476();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>