mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-08 00:00:41 -04:00
944 B
944 B
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f43e1000cf542c50ff50 | Problema 210: Triangoli con angoli ottusi | 1 | 301852 | 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.
assert.strictEqual(obtuseAngledTriangles(), 1598174770174689500);
--seed--
--seed-contents--
function obtuseAngledTriangles() {
return true;
}
obtuseAngledTriangles();
--solutions--
// solution required