45 lines
960 B
Markdown
45 lines
960 B
Markdown
---
|
|
id: 5900f4e11000cf542c50fff4
|
|
title: '問題 373: 外接円'
|
|
challengeType: 5
|
|
forumTopicId: 302035
|
|
dashedName: problem-373-circumscribed-circles
|
|
---
|
|
|
|
# --description--
|
|
|
|
あらゆる三角形において、3 つの頂点を通る外接円を描くことができます。 辺の長さが整数で、外接円の半径も整数であるすべての三角形について考えます。
|
|
|
|
そのような三角形のうち、半径が $n$ を超えないすべての三角形の外接円の半径の和を $S(n)$ とします。
|
|
|
|
$S(100) = 4\\,950$, $S(1\\,200) = 1\\,653\\,605$ です。
|
|
|
|
$S({10}^7)$ を求めなさい。
|
|
|
|
# --hints--
|
|
|
|
`circumscribedCircles()` は `727227472448913` を返す必要があります。
|
|
|
|
```js
|
|
assert.strictEqual(circumscribedCircles(), 727227472448913);
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```js
|
|
function circumscribedCircles() {
|
|
|
|
return true;
|
|
}
|
|
|
|
circumscribedCircles();
|
|
```
|
|
|
|
# --solutions--
|
|
|
|
```js
|
|
// solution required
|
|
```
|