* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
972 B
972 B
id, title, challengeType, videoUrl, dashedName
id | title | challengeType | videoUrl | dashedName |
---|---|---|---|---|
5900f5351000cf542c510047 | 问题456:包含原点II的三角形 | 5 | problem-456-triangles-containing-the-origin-ii |
--description--
定义:xn =(1248n mod 32323) - 16161yn =(8421n mod 30103) - 15051 Pn = {(x1,y1),(x2,y2),...,(xn,yn)}
例如,P8 = {( - 14913,-6630),( - 10161,5625),(5226,11889),(8340,-10778),(15852,-5203),( - 15165,11295),( - 1427,-14495),(12407,1060)}。
设C(n)是顶点在Pn中的三角形的数量,其中包含内部的原点。
示例:C(8)= 20 C(600)= 8950634 C(40 000)= 2666610948988
找到C(2 000 000)。
--hints--
euler456()
应返回333333208685971500。
assert.strictEqual(euler456(), 333333208685971500);
--seed--
--seed-contents--
function euler456() {
return true;
}
euler456();
--solutions--
// solution required