2018-09-30 22:01:58 +00:00
|
|
|
---
|
|
|
|
id: 5900f5481000cf542c51005b
|
|
|
|
title: 'Problem 476: Circle Packing II'
|
2020-11-27 18:02:05 +00:00
|
|
|
challengeType: 5
|
2019-08-05 16:17:33 +00:00
|
|
|
forumTopicId: 302153
|
2021-01-13 02:31:00 +00:00
|
|
|
dashedName: problem-476-circle-packing-ii
|
2018-09-30 22:01:58 +00:00
|
|
|
---
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --description--
|
|
|
|
|
2021-07-30 15:32:21 +00:00
|
|
|
Let $R(a, b, c)$ be the maximum area covered by three non-overlapping circles inside a triangle with edge lengths $a$, $b$ and $c$.
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2021-07-30 15:32:21 +00:00
|
|
|
Let $S(n)$ be the average value of $R(a, b, c)$ over all integer triplets $(a, b, c)$ such that $1 ≤ a ≤ b ≤ c < a + b ≤ n$.
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2021-07-30 15:32:21 +00:00
|
|
|
You are given $S(2) = R(1, 1, 1) ≈ 0.31998$, $S(5) ≈ 1.25899$.
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2021-07-30 15:32:21 +00:00
|
|
|
Find $S(1803)$ rounded to 5 decimal places behind the decimal point.
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --hints--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2021-07-30 15:32:21 +00:00
|
|
|
`circlePackingTwo()` should return `110242.87794`.
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
```js
|
2021-07-30 15:32:21 +00:00
|
|
|
assert.strictEqual(circlePackingTwo(), 110242.87794);
|
2020-11-27 18:02:05 +00:00
|
|
|
```
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --seed--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
## --seed-contents--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
|
|
|
```js
|
2021-07-30 15:32:21 +00:00
|
|
|
function circlePackingTwo() {
|
2020-09-15 16:57:40 +00:00
|
|
|
|
2018-09-30 22:01:58 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-07-30 15:32:21 +00:00
|
|
|
circlePackingTwo();
|
2018-09-30 22:01:58 +00:00
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --solutions--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|