Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-403-lattice-points-enclosed-by-parabola-and-line.md
Oliver Eyton-Williams ee1e8abd87 feat(curriculum): restore seed + solution to Chinese (#40683)
* 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>
2021-01-12 19:31:00 -07:00

45 lines
973 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f5001000cf542c510013
title: 问题403由抛物线和直线包围的格点
challengeType: 5
videoUrl: ''
dashedName: problem-403-lattice-points-enclosed-by-parabola-and-line
---
# --description--
对于整数a和b我们将Dab定义为由抛物线y = x2包围的域并且线y = a·x + bDab= {xy| x2≤y≤a·x + b}。
Lab定义为Dab中包含的晶格点数。例如L1,2= 8并且L2-1= 1。
我们还将SN定义为所有对ab的Lab之和使得Dab的面积是有理数并且| a || b | ≤N。我们可以验证S5= 344和S100= 26709528。
找到S1012。给你的答案mod 108。
# --hints--
`euler403()`应该返回18224771。
```js
assert.strictEqual(euler403(), 18224771);
```
# --seed--
## --seed-contents--
```js
function euler403() {
return true;
}
euler403();
```
# --solutions--
```js
// solution required
```