freeCodeCamp/curriculum/challenges/spanish/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: Cardano Triplets

Description

Un triplete de enteros positivos (a, b, c) se llama Cardano Triplet si cumple con la condición:

Por ejemplo, (2,1,5) es un Triplete Cardano.

Existen 149 trillizos de Cardano para los cuales a + b + c ≤ 1000.

Halla cuántos trillizos Cardano existen de modo que a + b + c ≤ 110,000,000.

Instructions

Tests

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

Challenge Seed

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

euler251();

Solution

// solution required