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

47 lines
859 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: 5900f51d1000cf542c51002f
title: 问题433欧几里得算法的步骤
challengeType: 5
videoUrl: ''
dashedName: problem-433-steps-in-euclids-algorithm
---
# --description--
设Ex0y0为用Euclid算法确定x0和y0的最大公约数所需要的步数。 更正式地说x1 = y0y1 = x0 mod y0xn = yn-1yn = xn-1 mod yn-1
Ex0y0是最小的n因此yn = 0。
我们有E1,1= 1E10,6= 3和E6,10= 4。
将SN定义为1≤xy≤N的Exy之和。 我们有S1= 1S10= 221和S100= 39826。
求S5·106
# --hints--
`euler433()`应该返回326624372659664。
```js
assert.strictEqual(euler433(), 326624372659664);
```
# --seed--
## --seed-contents--
```js
function euler433() {
return true;
}
euler433();
```
# --solutions--
```js
// solution required
```