1.3 KiB
1.3 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f5351000cf542c510047 | 5 | Problem 456: Triangles containing the origin II | Problema 456: Triángulos que contienen el origen II |
Description
Por ejemplo, P8 = {(-14913, -6630), (-10161, 5625), (5226, 11896), (8340, -10778), (15852, -5203), (-15165, 11295), (- 1427, -14495), (12407, 1060)}.
Sea C (n) el número de triángulos cuyos vértices están en Pn que contienen el origen en el interior.
Ejemplos: C (8) = 20 C (600) = 8950634 C (40 000) = 2666610948988
Encontrar C (2 000 000).
Instructions
Tests
tests:
- text: <code>euler456()</code> debe devolver 333333208685971500.
testString: 'assert.strictEqual(euler456(), 333333208685971500, "<code>euler456()</code> should return 333333208685971500.");'
Challenge Seed
function euler456() {
// Good luck!
return true;
}
euler456();
Solution
// solution required