freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-168-number-rotation...

56 lines
1.4 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: 5900f4151000cf542c50ff27
challengeType: 5
title: 'Problem 168: Number Rotations'
videoUrl: ''
localeTitle: 'Проблема 168: Число оборотов'
---
## Description
<section id="description"> Рассмотрим число 142857. Мы можем повернуть это число с помощью правого поворота, переместив последнюю цифру (7) в начало, давая нам 714285. Можно проверить, что 714285 = 5 × 142857. Это демонстрирует необычное свойство 142857: оно является делителем его правого вращения. Найдите последние 5 цифр суммы всех целых чисел n, 10 &lt;n &lt;10100, которые имеют это свойство. </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler168()</code> должен возвращать 59206.
testString: 'assert.strictEqual(euler168(), 59206, "<code>euler168()</code> should return 59206.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler168() {
// Good luck!
return true;
}
euler168();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>