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

45 lines
747 B
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
title: 问题370几何三角形
challengeType: 5
videoUrl: ''
dashedName: problem-370-geometric-triangles
---
# --description--
让我们将几何三角形定义为具有边a≤b≤c的整数边三角形使得其边形成几何级数即b2 = a·c。
这种几何三角形的一个例子是边长为a = 144b = 156和c = 169的三角形。
有861805个几何三角形周长≤106。
有多少个几何三角形周长≤2.5·1013
# --hints--
`euler370()`应该返回41791929448408。
```js
assert.strictEqual(euler370(), 41791929448408);
```
# --seed--
## --seed-contents--
```js
function euler370() {
return true;
}
euler370();
```
# --solutions--
```js
// solution required
```