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

55 lines
1.7 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: 5900f3971000cf542c50feaa
challengeType: 5
title: 'Problem 43: Sub-string divisibility'
videoUrl: ''
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
undefined
## Tests
<section id='tests'>
```yml
tests:
- text: ''
testString: 'assert.deepEqual(substringDivisibility(), [ 1430952867, 1460357289, 1406357289, 4130952867, 4160357289, 4106357289 ], "<code>substringDivisibility()</code> should return [ 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>