freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-94-almost-equilater...

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