freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-135-same-difference...

56 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f3f31000cf542c50ff06
challengeType: 5
title: 'Problem 135: Same differences'
videoUrl: ''
localeTitle: 'Проблема 135: Те же различия'
---
## Description
<section id="description"> Для положительных целых чисел x, y и z являются последовательными членами арифметической прогрессии, наименьшее значение натурального числа n, для которого уравнение x2 - y2 - z2 = n имеет ровно два решения: n = 27: 342 - 272 - 202 = 122 - 92 - 62 = 27 Оказывается, что n = 1155 является наименьшим значением, которое имеет ровно десять решений. Сколько значений n менее одного миллиона имеет ровно десять различных решений? </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler135()</code> должен вернуть 4989.
testString: 'assert.strictEqual(euler135(), 4989, "<code>euler135()</code> should return 4989.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler135() {
// Good luck!
return true;
}
euler135();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>