* 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>
41 lines
691 B
Markdown
41 lines
691 B
Markdown
---
|
||
id: 5900f3d91000cf542c50feeb
|
||
title: 问题108:丢番图互惠I
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-108-diophantine-reciprocals-i
|
||
---
|
||
|
||
# --description--
|
||
|
||
在下面的等式中,x,y和n是正整数。 1 / `x` + 1 / `y` = 1 / `n`对于`n` = 4,恰好有三种不同的解:1/5 + 1/20 = 1/4
|
||
1/6 + 1/12 = 1/4
|
||
1/8 + 1/8 = 1/4不同解的数量超过一千的`n的`最小值是多少?
|
||
|
||
# --hints--
|
||
|
||
diophantineOne `diophantineOne()`应返回180180。
|
||
|
||
```js
|
||
assert.strictEqual(diophantineOne(), 180180);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function diophantineOne() {
|
||
|
||
return true;
|
||
}
|
||
|
||
diophantineOne();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|