45 lines
747 B
Markdown
45 lines
747 B
Markdown
---
|
||
id: 5900f4de1000cf542c50fff1
|
||
title: 问题370:几何三角形
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-370-geometric-triangles
|
||
---
|
||
|
||
# --description--
|
||
|
||
让我们将几何三角形定义为具有边a≤b≤c的整数边三角形,使得其边形成几何级数,即b2 = a·c。
|
||
|
||
这种几何三角形的一个例子是边长为a = 144,b = 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
|
||
```
|