Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-217-balanced-numbers.russian.md

56 lines
1.6 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: 5900f4461000cf542c50ff58
challengeType: 5
title: 'Problem 217: Balanced Numbers'
videoUrl: ''
localeTitle: 'Задача 217: Сбалансированные номера'
---
## Description
<section id="description"> Положительное целое число с k (десятичными) цифрами называется сбалансированным, если его первые цифры ⌈k / 2its суммируются с тем же значением, что и его последние цифры ⌈k / 2its, где ⌈x⌉, выраженный потолок x, является наименьшим целым числом ≥ x, таким образом, ⌈π⌉ = 4 и ⌈5⌉ = 5. Итак, например, все палиндромы сбалансированы, как и 13722. Пусть T (n) - сумма всех сбалансированных чисел, меньших 10n. Таким образом: T (1) = 45, T (2) = 540 и T (5) = 334795890. Найдите T (47) mod 315 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler217()</code> должен вернуть 6273134.
testString: 'assert.strictEqual(euler217(), 6273134, "<code>euler217()</code> should return 6273134.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler217() {
// Good luck!
return true;
}
euler217();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>