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

56 lines
1.1 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: 5900f4de1000cf542c50fff1
challengeType: 5
title: 'Problem 370: Geometric triangles'
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, "<code>euler370()</code> should return 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>