freeCodeCamp/curriculum/challenges/portuguese/08-coding-interview-prep/project-euler/problem-251-cardano-triplet...

1.0 KiB

id challengeType title videoUrl localeTitle
5900f4671000cf542c50ff7a 5 Problem 251: Cardano Triplets Problema 251: Trigêmeos Cardano

Description

Um trio de inteiros positivos (a, b, c) é chamado de Tripleto Cardano se satisfizer a condição:

Por exemplo, (2,1,5) é um Cardano Triplet.

Existem 149 Cardano Trigêmeos para os quais a + b + c ≤ 1000.

Descubra quantas Cardplas Triplets existem, de modo que a + b + c ≤ 110.000.000.

Instructions

Tests

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

Challenge Seed

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

euler251();

Solution

// solution required