freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-210-obtuse-angled-t...

47 lines
944 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f43e1000cf542c50ff50
title: 'Problema 210: Triangoli con angoli ottusi'
challengeType: 5
forumTopicId: 301852
dashedName: problem-210-obtuse-angled-triangles
---
# --description--
Considera il set $S(r)$ di punti ($x$, $y$) con numeri interi come coordinate che soddisfano $|x| + |y| ≤ r$.
Sia $O$ il punto (0,0) e $C$ il punto ($\frac{r}{4}$,$\frac{r}{4}$).
Sia $N(r)$ il numeri di punti $B$ in $S(r)$, cosicché il triangolo $OBC$ abbia un angolo ottuso, cioè l'angolo più grande $α$ soddisfa $90°<α<180°$.
Per esempio, $N(4)=24$ e $N(8)=100$.
Cos'è $N(1\\,000\\,000\\,000)$?
# --hints--
`obtuseAngledTriangles()` dovrebbe restituire `1598174770174689500`.
```js
assert.strictEqual(obtuseAngledTriangles(), 1598174770174689500);
```
# --seed--
## --seed-contents--
```js
function obtuseAngledTriangles() {
return true;
}
obtuseAngledTriangles();
```
# --solutions--
```js
// solution required
```