Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-294-sum-of-digits---experience-23.russian.md

56 lines
1.4 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: 5900f4931000cf542c50ffa5
challengeType: 5
title: 'Problem 294: Sum of digits - experience #23'
videoUrl: ''
localeTitle: 'Задача 294: Сумма цифр - опыт № 23'
---
## Description
<section id="description"> Для положительного целого k определим d (k) как сумму цифр k в его обычном десятичном представлении. Таким образом, d (42) = 4 + 2 = 6. <p> Для положительного целого числа n определим S (n) как число положительных целых k &lt;10n со следующими свойствами: k делится на 23 и d (k) = 23. </p><p> Вам дается, что S (9) = 263626 и S (42) = 6377168878570056. </p><p> Найдите S (1112) и дайте свой ответ mod 109. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler294()</code> должен вернуть 789184709.
testString: 'assert.strictEqual(euler294(), 789184709, "<code>euler294()</code> should return 789184709.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler294() {
// Good luck!
return true;
}
euler294();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>