Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-476-circle-packing-ii.md

45 lines
969 B
Markdown
Raw Permalink Normal View History

---
id: 5900f5481000cf542c51005b
title: '問題 476: 円を詰める (2)'
challengeType: 5
forumTopicId: 302153
dashedName: problem-476-circle-packing-ii
---
# --description--
辺の長さが $a$, $b$, $c$ の三角形の内側で、重ならない 3 つの円で覆うことができる最大面積を $R(a, b, c)$ とします。
$1 ≤ a ≤ b ≤ c < a + b ≤ n$ が成り立つすべての三つ組整数 $(a, b, c)$ における $R(a, b, c)$ の平均値を $S(n)$ とします。
$S(2) = R(1, 1, 1) ≈ 0.31998$, $S(5) ≈ 1.25899$ が与えられます。
$S(1803)$ を求め、四捨五入して小数第 5 位まで示しなさい。
# --hints--
`circlePackingTwo()``110242.87794` を返す必要があります。
```js
assert.strictEqual(circlePackingTwo(), 110242.87794);
```
# --seed--
## --seed-contents--
```js
function circlePackingTwo() {
return true;
}
circlePackingTwo();
```
# --solutions--
```js
// solution required
```