* 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>
45 lines
876 B
Markdown
45 lines
876 B
Markdown
---
|
||
id: 5900f5071000cf542c510018
|
||
title: 问题410:圆和切线
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-410-circle-and-tangent-line
|
||
---
|
||
|
||
# --description--
|
||
|
||
设C为半径为r的圆,x2 + y2 = r2。我们选择两个点P(a,b)和Q(-a,c),使得穿过P和Q的线与C相切。
|
||
|
||
例如,四元组(r,a,b,c)=(2,6,2,-7)满足该属性。
|
||
|
||
令F(R,X)为具有该性质的整数四元组(r,a,b,c)的数量,并且0 <r≤R且0 <a≤X。
|
||
|
||
我们可以验证F(1,5)= 10,F(2,10)= 52和F(10,100)= 3384.求F(108,109)+ F(109,108)。
|
||
|
||
# --hints--
|
||
|
||
`euler410()`应该返回799999783589946600。
|
||
|
||
```js
|
||
assert.strictEqual(euler410(), 799999783589946600);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler410() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler410();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|