Files
freeCodeCamp/curriculum/challenges/portuguese/10-coding-interview-prep/project-euler/problem-223-almost-right-angled-triangles-i.md

41 lines
789 B
Markdown
Raw Permalink Normal View History

---
id: 5900f44b1000cf542c50ff5e
title: 'Problema 223: Triângulos quase retos I'
challengeType: 5
forumTopicId: 301866
dashedName: problem-223-almost-right-angled-triangles-i
---
# --description--
Chamaremos um triângulo de comprimento dos lados expresso em números inteiros, com os lados $a ≤ b ≤ c$, de quase agudos se os lados satisfizerem $a^2 + b^2 = c^2 + 1$.
Quantos triângulos quase agudos existem com o perímetro $≤ 25.000.000$?
# --hints--
`almostRightAngledTrianglesOne()` deve retornar `61614848`.
```js
assert.strictEqual(almostRightAngledTrianglesOne(), 61614848);
```
# --seed--
## --seed-contents--
```js
function almostRightAngledTrianglesOne() {
return true;
}
almostRightAngledTrianglesOne();
```
# --solutions--
```js
// solution required
```