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

28 lines
574 B
Markdown
Raw Normal View History

---
id: 5900f4de1000cf542c50fff1
title: 问题370几何三角形
challengeType: 5
videoUrl: ''
---
# --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);
```
# --solutions--