Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-43-sub-string-divisibility.russian.md

58 lines
1.7 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: 5900f3971000cf542c50feaa
challengeType: 5
title: 'Problem 43: Sub-string divisibility'
forumTopicId: 302100
localeTitle: 'Задача 43: делимость подстроки'
---
## Description
<section id='description'>
Число, 1406357289, представляет собой число от 0 до 9 pandigital, потому что оно составлено из каждой цифры от 0 до 9 в некотором порядке, но также имеет довольно интересное свойство делимости подстроки. Пусть d1 - первая цифра, d2 - вторая цифра и т. Д. Таким образом, отметим следующее: d2d3d4 = 406 делится на 2 d3d4d5 = 063 делится на 3 d4d5d6 = 635 делится на 5 d5d6d7 = 357 делится на 7 d6d7d8 = 572 делится на 11 d7d8d9 = 728 делится на 13 d8d9d10 = 289 делится на 17. Найдите числа от 0 до 9 pandigital номеров с этим свойством.
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>substringDivisibility()</code> should return [ 1430952867, 1460357289, 1406357289, 4130952867, 4160357289, 4106357289 ].
testString: assert.deepEqual(substringDivisibility(), [ 1430952867, 1460357289, 1406357289, 4130952867, 4160357289, 4106357289 ]);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function substringDivisibility() {
// Good luck!
return [];
}
substringDivisibility();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>