1.2 KiB
1.2 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f42c1000cf542c50ff3f | 5 | Problem 192: Best Approximations | 问题192:最佳近似值 |
Description
| P / QX | <| r / sx | ⇒q> d
例如,分母界限20的最佳近似值√13为18/5,分母界限30的最佳近似值为√13为101/28。
找到分母1012的最佳逼近的所有分母的总和为√n,其中n不是完美的正方形,1 <n≤100000。
Instructions
Tests
tests:
- text: <code>euler192()</code>应该返回57060635927998344。
testString: 'assert.strictEqual(euler192(), 57060635927998344, "<code>euler192()</code> should return 57060635927998344.");'
Challenge Seed
function euler192() {
// Good luck!
return true;
}
euler192();
Solution
// solution required