2022-01-21 01:00:18 +05:30
|
|
|
---
|
|
|
|
id: 5900f4311000cf542c50ff43
|
2022-01-22 20:38:20 +05:30
|
|
|
title: '問題 195: 60 度の角を 1 つ持つ三角形の内接円'
|
2022-01-21 01:00:18 +05:30
|
|
|
challengeType: 5
|
|
|
|
forumTopicId: 301833
|
|
|
|
dashedName: problem-195-inscribed-circles-of-triangles-with-one-angle-of-60-degrees
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
|
|
|
60 度の角をちょうど 1 つ持ち、辺の長さが整数である三角形を「60 度三角形」と呼ぶことにします。
|
|
|
|
|
|
|
|
60 度三角形の内接円の半径を $r$ とします。
|
|
|
|
|
|
|
|
$r ≤ 100$ である 60 度角三角形は 1234 個あります。
|
|
|
|
|
|
|
|
$r ≤ n$ である 60 度三角形の数を $T(n)$ とします。$T(100) = 1234, $T(1000) = 22767, $T(10000) = 359912 です。
|
|
|
|
|
|
|
|
$T(1053779)$ を求めなさい。
|
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
|
|
|
`inscribedCirclesOfTriangles()` は `75085391` を返す必要があります。
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert.strictEqual(inscribedCirclesOfTriangles(), 75085391);
|
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```js
|
|
|
|
function inscribedCirclesOfTriangles() {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
inscribedCirclesOfTriangles();
|
|
|
|
```
|
|
|
|
|
|
|
|
# --solutions--
|
|
|
|
|
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|