22 lines
614 B
Markdown
22 lines
614 B
Markdown
---
|
||
id: 5900f3ca1000cf542c50fedd
|
||
title: 问题94:几乎等边三角形
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
---
|
||
|
||
# --description--
|
||
|
||
很容易证明,不存在具有整体长边和整体面积的等边三角形。然而,几乎等边三角形5-5-6的面积为12平方单位。我们将几乎等边三角形定义为三边形,其中两边相等,第三边相差不超过一个单位。求出所有几乎等边三角形的周长之和,其中边长和面积不超过十亿(1,000,000,000)。
|
||
|
||
# --hints--
|
||
|
||
`euler94()`应该返回518408346。
|
||
|
||
```js
|
||
assert.strictEqual(euler94(), 518408346);
|
||
```
|
||
|
||
# --solutions--
|
||
|