56 lines
1.2 KiB
Markdown
56 lines
1.2 KiB
Markdown
---
|
|
id: 5900f4671000cf542c50ff7a
|
|
challengeType: 5
|
|
title: 'Problem 251: Cardano Triplets'
|
|
videoUrl: ''
|
|
localeTitle: 'Проблема 251: Cardano Triplets'
|
|
---
|
|
|
|
## Description
|
|
<section id="description"> Триплет положительных целых чисел (a, b, c) называется кардинальным триплетом, если он удовлетворяет условию: <p> Например, (2,1,5) является кардинальным триплетом. </p><p> Существует 149 Cardano Triplets, для которых a + b + c ≤ 1000. </p><p> Найдите, сколько существует Cardano Triplets, так что a + b + c ≤ 110 000 000. </p></section>
|
|
|
|
## Instructions
|
|
<section id="instructions">
|
|
</section>
|
|
|
|
## Tests
|
|
<section id='tests'>
|
|
|
|
```yml
|
|
tests:
|
|
- text: <code>euler251()</code> должен вернуть 18946051.
|
|
testString: 'assert.strictEqual(euler251(), 18946051, "<code>euler251()</code> should return 18946051.");'
|
|
|
|
```
|
|
|
|
</section>
|
|
|
|
## Challenge Seed
|
|
<section id='challengeSeed'>
|
|
|
|
<div id='js-seed'>
|
|
|
|
```js
|
|
function euler251() {
|
|
// Good luck!
|
|
return true;
|
|
}
|
|
|
|
euler251();
|
|
|
|
```
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
## Solution
|
|
<section id='solution'>
|
|
|
|
```js
|
|
// solution required
|
|
```
|
|
</section>
|