--- id: 5900f4a11000cf542c50ffb4 challengeType: 5 title: 'Problem 309: Integer Ladders' videoUrl: '' localeTitle: 问题309:整数阶梯 --- ## Description
在经典的“穿越梯子”问题中,我们得到了两个梯子的长度x和y,它们位于一条狭窄的水平街道的相对壁上。 我们还给出了两个梯子交叉的街道上方的高度h,并要求我们找到街道的宽度(w)。 在这里,我们仅关注所有四个变量均为正整数的实例。 例如,如果x = 70,y = 119,h = 30,我们可以计算出w = 56。 实际上,对于x,y,h和0 ## Instructions
## Tests
```yml tests: - text: euler309()应该返回210139。 testString: assert.strictEqual(euler309(), 210139); ```
## Challenge Seed
```js function euler309() { // Good luck! return true; } euler309(); ```
## Solution
```js // solution required ``` /section>