freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-229-four-representa...

56 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode 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: 5900f4521000cf542c50ff64
challengeType: 5
videoUrl: ''
title: 问题229使用正方形的四个表示
---
## Description
<section id="description">考虑数字3600.这是非常特别的,因为<p> 3600 = 482 + 362 3600 = 202 + 2×402 3600 = 302 + 3×302 3600 = 452 + 7×152 </p><p>类似地我们发现88201 = 992 + 2802 = 2872 + 2×542 = 2832 + 3×522 = 1972 + 7×842。 </p><p>在1747年欧拉证明哪些数字可以表示为两个正方形的总和。我们感兴趣的是数字n它承认以下四种类型的表示 </p><p> n = a12 + b12n = a22 + 2 b22n = a32 + 3 b32n = a72 + 7 b72 </p><p>其中ak和bk是正整数。 </p><p>有75373这样的数字不超过107。 </p><p>有多少这样的数字不超过2×109 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler229()</code>应该返回11325263。
testString: assert.strictEqual(euler229(), 11325263);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler229() {
// Good luck!
return true;
}
euler229();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>