55 lines
1.3 KiB
Markdown
55 lines
1.3 KiB
Markdown
---
|
||
id: 5900f5481000cf542c51005b
|
||
challengeType: 5
|
||
title: 'Problem 476: Circle Packing II'
|
||
videoUrl: ''
|
||
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 <a + b ≤ n Вы даны S (2 ) = R (1, 1, 1) ≈ 0.31998, S (5) ≈ 1.25899. Найдите S (1803), округленное до 5 знаков после запятой. </section>
|
||
|
||
## Instructions
|
||
undefined
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: ''
|
||
testString: 'assert.strictEqual(euler476(), 110242.87794, "<code>euler476()</code> should return 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>
|