search and replace ```\n< with ```\n\n< to ensure there's an empty line before closing tags
1.4 KiB
1.4 KiB
id, challengeType, title, videoUrl, localeTitle
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f4a11000cf542c50ffb4 | 5 | Problem 309: Integer Ladders | 问题309:整数阶梯 |
Description
在这里,我们仅关注所有四个变量均为正整数的实例。 例如,如果x = 70,y = 119,h = 30,我们可以计算出w = 56。
实际上,对于x,y,h和0 <x <y <200的整数,只有五个三元组(x,y,h)产生w的整数解: (70、119、30),(74、182、21),(87、105、35),(100、116、35)和(119、175、40)。
对于整数值x,y,h和0 <x <y <1 000 000,有多少个三元组(x,y,h)产生w的整数解?
Instructions
Tests
tests:
- text: <code>euler309()</code>应该返回210139。
testString: assert.strictEqual(euler309(), 210139);
Challenge Seed
function euler309() {
// Good luck!
return true;
}
euler309();
Solution
// solution required
/section>