Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-210-obtuse-angled-triangles.md
2022-01-20 20:30:18 +01:00

47 lines
996 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f43e1000cf542c50ff50
title: '問題 210: 鈍角三角形'
challengeType: 5
forumTopicId: 301852
dashedName: problem-210-obtuse-angled-triangles
---
# --description--
$|x| + |y| ≤ r$ を満たす整数座標の点 ($x$,$y$) からなる集合 $S(r)$ について考えます。
点 (0,0) を $O$、点 ($\frac{r}{4}$, $\frac{r}{4}$) を $C$ とします。
三角形 $OBC$ が鈍角を持つ、すなわち最大角 $α$ が $90°<α<180°$ であるような、$S(r) 内の点 $B$ の数を $N(r) とします。
したがって、例えば $N(4)=24$, $N(8)=100$ です。
$N(1\\,000\\,000\\,000)$ を求めなさい。
# --hints--
`obtuseAngledTriangles()``1598174770174689500` を返す必要があります。
```js
assert.strictEqual(obtuseAngledTriangles(), 1598174770174689500);
```
# --seed--
## --seed-contents--
```js
function obtuseAngledTriangles() {
return true;
}
obtuseAngledTriangles();
```
# --solutions--
```js
// solution required
```