mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-08 00:00:41 -04:00
844 B
844 B
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f4f11000cf542c510002 | Problema 388: Linee Distinte | 1 | 302052 | problem-388-distinct-lines |
--description--
Considera tutti i punti del reticolo (a, b, c) con 0 ≤ a, b, c ≤ N.
Dall'origine O(0, 0, 0) tutte le linee sono disegnate verso gli altri punti del reticolo. Sia D(N) il numero di linee distinte.
Ti è dato che D(1\\,000\\,000) = 831\\,909\\,254\\,469\\,114\\,121.
Trova D({10}^{10}). Dai come risposta le prime nove cifre seguite dalle ultime nove cifre.
--hints--
distinctLines() should return 831907372805130000.
assert.strictEqual(distinctLines(), 831907372805130000);
--seed--
--seed-contents--
function distinctLines() {
return true;
}
distinctLines();
--solutions--
// solution required