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

969 B

id challengeType title videoUrl localeTitle
5900f44e1000cf542c50ff5f 5 Problem 224: Almost right-angled triangles II Problema 224: Triângulos quase retos II

Description

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

Quantos triângulos mal obtusos existem com perímetro ≤ 75.000.000?

Instructions

Tests

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

Challenge Seed

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

euler224();

Solution

// solution required