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
1.1 KiB
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: 5900f4a11000cf542c50ffb4
title: 问题309整数阶梯
challengeType: 5
videoUrl: ''
dashedName: problem-309-integer-ladders
---
# --description--
在经典的“穿越梯子”问题中我们得到了两个梯子的长度x和y它们位于一条狭窄的水平街道的相对壁上。 我们还给出了两个梯子交叉的街道上方的高度h并要求我们找到街道的宽度w
在这里,我们仅关注所有四个变量均为正整数的实例。 例如如果x = 70y = 119h = 30我们可以计算出w = 56。
实际上对于xyh和0 &lt;x &lt;y &lt;200的整数只有五个三元组xyh产生w的整数解 70、119、3074、182、2187、105、35100、116、35119、175、40
对于整数值xyh和0 &lt;x &lt;y &lt;1 000 000有多少个三元组xyh产生w的整数解
# --hints--
`euler309()`应该返回210139。
```js
assert.strictEqual(euler309(), 210139);
```
# --seed--
## --seed-contents--
```js
function euler309() {
return true;
}
euler309();
```
# --solutions--
```js
// solution required
```