Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-251-cardano-triplets.chinese.md
Oliver Eyton-Williams 61460c8601 fix: insert blank line after ```
search and replace ```\n< with ```\n\n< to ensure there's an empty line
before closing tags
2020-08-16 04:45:20 +05:30

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>