freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-370-geometric-trian...

56 lines
994 B
Markdown
Raw Normal View History

---
id: 5900f4de1000cf542c50fff1
challengeType: 5
videoUrl: ''
localeTitle: 问题370几何三角形
---
## Description
<section id="description">让我们将几何三角形定义为具有边a≤b≤c的整数边三角形使得其边形成几何级数即b2 = a·c。 <p>这种几何三角形的一个例子是边长为a = 144b = 156和c = 169的三角形。 </p><p>有861805个几何三角形周长≤106。 </p><p>有多少个几何三角形周长≤2.5·1013 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler370()</code>应该返回41791929448408。
testString: assert.strictEqual(euler370(), 41791929448408);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler370() {
// Good luck!
return true;
}
euler370();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>