freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-261-pivotal-square-...

56 lines
1.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4711000cf542c50ff84
challengeType: 5
videoUrl: ''
title: 问题261Pivotal Square Sums
---
## Description
<section id="description">如果存在一对m&gt; 0且n≥k的整数则让我们称正整数ka square-pivot使得直到k的m + 1个连续正方形的总和等于m个连续正方形的总和从n + 1开始 <p> km2 + ... + k2 =n + 12 + ... +n + m2。 </p><p>一些小的方形枢轴是432 + 42 = 52 21202 + 212 = 292 24212 + 222 + 232 + 242 = 252 + 262 + 272 1101082 + 1092 + 1102 = 1332 + 1342找到所有的总和不同的方形枢轴≤1010。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler261()</code>应该返回238890850232021。
testString: assert.strictEqual(euler261(), 238890850232021);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler261() {
// Good luck!
return true;
}
euler261();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>