* 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>
973 B
973 B
id, title, challengeType, videoUrl, dashedName
id | title | challengeType | videoUrl | dashedName |
---|---|---|---|---|
5900f5001000cf542c510013 | 问题403:由抛物线和直线包围的格点 | 5 | problem-403-lattice-points-enclosed-by-parabola-and-line |
--description--
对于整数a和b,我们将D(a,b)定义为由抛物线y = x2包围的域,并且线y = a·x + b:D(a,b)= {(x,y)| x2≤y≤a·x + b}。
L(a,b)定义为D(a,b)中包含的晶格点数。例如,L(1,2)= 8并且L(2,-1)= 1。
我们还将S(N)定义为所有对(a,b)的L(a,b)之和,使得D(a,b)的面积是有理数并且| a |,| b | ≤N。我们可以验证S(5)= 344和S(100)= 26709528。
找到S(1012)。给你的答案mod 108。
--hints--
euler403()
应该返回18224771。
assert.strictEqual(euler403(), 18224771);
--seed--
--seed-contents--
function euler403() {
return true;
}
euler403();
--solutions--
// solution required