Files
freeCodeCamp/curriculum/challenges/german/10-coding-interview-prep/project-euler/problem-210-obtuse-angled-triangles.md
2022-10-18 12:59:49 +05:30

47 lines
965 B
Markdown
Raw 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: 'Problem 210: Obtuse Angled Triangles'
challengeType: 1
forumTopicId: 301852
dashedName: problem-210-obtuse-angled-triangles
---
# --description--
Man betrachte die Menge $S(r)$ von Punkten ($x$,$y$) mit ganzzahligen Koordinaten, die $|x| + |y| ≤ r$ erfüllen.
Let $O$ be the point (0,0) and $C$ the point ($\frac{r}{4}$,$\frac{r}{4}$).
Lasse $N(r)$ die Anzahl der Punkte $B$ in $S(r)$ sein, sodass das Dreieck $OBC$ einen stumpfen Winkel hat, d.h. der größte Winkel $α$ erfüllt $90°<α<180°$.
So ist zum Beispiel $N(4)=24$ und $N(8)=100$.
Was ist $N(1\\.000\.000\.000)$?
# --hints--
`obtuseAngledTriangles()` sollte `1598174770174689500` zurückgeben.
```js
assert.strictEqual(obtuseAngledTriangles(), 1598174770174689500);
```
# --seed--
## --seed-contents--
```js
function obtuseAngledTriangles() {
return true;
}
obtuseAngledTriangles();
```
# --solutions--
```js
// solution required
```