freeCodeCamp/curriculum/challenges/portuguese/08-coding-interview-prep/project-euler/problem-223-almost-right-an...

968 B

id challengeType title videoUrl localeTitle
5900f44b1000cf542c50ff5e 5 Problem 223: Almost right-angled triangles I Problema 223: Triângulos quase retos I

Description

Vamos chamar um triângulo de lados inteiros com lados a ≤ b ≤ c mal agudo se os lados satisfizerem a2 + b2 = c2 + 1.

Quantos triângulos mal agudos existem com perímetro ≤ 25.000.000?

Instructions

Tests

tests:
  - text: <code>euler223()</code> deve retornar 61614848.
    testString: 'assert.strictEqual(euler223(), 61614848, "<code>euler223()</code> should return 61614848.");'

Challenge Seed

function euler223() {
  // Good luck!
  return true;
}

euler223();

Solution

// solution required