Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-273-sum-of-squares.russian.md

56 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f47e1000cf542c50ff90
challengeType: 5
title: 'Problem 273: Sum of Squares'
videoUrl: ''
localeTitle: 'Задача 273: Сумма квадратов'
---
## Description
<section id="description"> Рассмотрим уравнения вида: a2 + b2 = N, 0 ≤ a ≤ b, a, b и N целое число. <p> Для N = 65 существуют два решения: a = 1, b = 8 и a = 4, b = 7. Назовем S (N) суммой значений a всех решений a2 + b2 = N, 0 ≤ a ≤ b, a, b и N целых чисел. Таким образом, S (65) = 1 + 4 = 5. Найти ΣS (N), для всех квадратов N, только делимых штрихами вида 4k + 1 с 4k + 1 &lt;150. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler273()</code> должен вернуть 2032447591196869000.
testString: 'assert.strictEqual(euler273(), 2032447591196869000, "<code>euler273()</code> should return 2032447591196869000.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler273() {
// Good luck!
return true;
}
euler273();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>