28 lines
510 B
Markdown
28 lines
510 B
Markdown
---
|
||
id: 5900f4671000cf542c50ff7a
|
||
title: 问题251:卡尔达诺三胞胎
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
---
|
||
|
||
# --description--
|
||
|
||
如果满足条件,则正整数(a,b,c)的三元组称为Cardano三元组:
|
||
|
||
例如,(2,1,5)是Cardano Triplet。
|
||
|
||
存在149个Cardano三胞胎,其中a + b +c≤1000。
|
||
|
||
找出有多少卡尔达诺三胞胎存在,使a + b +c≤110,000,000。
|
||
|
||
# --hints--
|
||
|
||
`euler251()`应该返回18946051。
|
||
|
||
```js
|
||
assert.strictEqual(euler251(), 18946051);
|
||
```
|
||
|
||
# --solutions--
|
||
|