Files
2022-02-28 20:22:39 +01:00

944 B
Raw Permalink Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f43e1000cf542c50ff50 Problema 210: Triangoli con angoli ottusi 5 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