2020-09-29 22:09:05 +02:00

969 B
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f4671000cf542c50ff7a 5 Problem 251: Cardano Triplets 问题251卡尔达诺三胞胎

Description

如果满足条件则正整数abc的三元组称为Cardano三元组

例如2,1,5是Cardano Triplet。

存在149个Cardano三胞胎其中a + b +c≤1000。

找出有多少卡尔达诺三胞胎存在使a + b +c≤110,000,000。

Instructions

Tests

tests:
  - text: <code>euler251()</code>应该返回18946051。
    testString: assert.strictEqual(euler251(), 18946051);

Challenge Seed

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

euler251();

Solution

// solution required

/section>