mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-08 00:00:41 -04:00
916 B
916 B
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f4de1000cf542c50fff1 | Problema 370: Triangoli geometrici | 1 | 302032 | problem-370-geometric-triangles |
--description--
Sia un triangolo geometrico un triangolo con lati interi con lati a ≤ b ≤ c cossìcché i suoi lati formino una progressione geometrica, cioè b^2 = a \times c.
Un esempio di tale triangolo è il triangolo con lati a = 144, b = 156 e c = 169.
Ci sono 861\\,805 triangoli geometrici con \text{perimetro} ≤ {10}^6.
Quanti triangoli geometrici esistono con \text{perimetro} ≤ 2.5 \times {10}^{13}?
--hints--
geometricTriangles() dovrebbe restituire 41791929448408.
assert.strictEqual(geometricTriangles(), 41791929448408);
--seed--
--seed-contents--
function geometricTriangles() {
return true;
}
geometricTriangles();
--solutions--
// solution required