56 lines
1.5 KiB
Markdown
56 lines
1.5 KiB
Markdown
|
---
|
|||
|
id: 5900f5271000cf542c510039
|
|||
|
challengeType: 5
|
|||
|
title: 'Problem 442: Eleven-free integers'
|
|||
|
videoUrl: ''
|
|||
|
localeTitle: 'المشكلة 442: الأعداد الصحيحة المكونة من 11 خالًا'
|
|||
|
---
|
|||
|
|
|||
|
## Description
|
|||
|
<section id="description"> يُطلق على عدد صحيح ما مجموعه 11 عامًا إذا لم يحتوي توسعها العشري على أي سلسلة فرعية تمثل قوة 11 باستثناء 1. <p style=";text-align:right;direction:rtl"> على سبيل المثال ، 2404 و 13431 أحد عشر حرة ، في حين أن 911 و 4121331 ليست كذلك. </p><p style=";text-align:right;direction:rtl"> اسمح لـ E (n) أن يكون العدد الصحيح الإيجابي الخالي من أحد عشر. على سبيل المثال ، E (3) = 3 ، E (200) = 213 و E (500 000) = 531563. </p><p style=";text-align:right;direction:rtl"> تجد ه (1018). </p></section>
|
|||
|
|
|||
|
## Instructions
|
|||
|
<section id="instructions">
|
|||
|
</section>
|
|||
|
|
|||
|
## Tests
|
|||
|
<section id='tests'>
|
|||
|
|
|||
|
```yml
|
|||
|
tests:
|
|||
|
- text: يجب أن يقوم <code>euler442()</code> بإرجاع 1295552661530920200.
|
|||
|
testString: 'assert.strictEqual(euler442(), 1295552661530920200, "<code>euler442()</code> should return 1295552661530920200.");'
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Challenge Seed
|
|||
|
<section id='challengeSeed'>
|
|||
|
|
|||
|
<div id='js-seed'>
|
|||
|
|
|||
|
```js
|
|||
|
function euler442() {
|
|||
|
// Good luck!
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
euler442();
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Solution
|
|||
|
<section id='solution'>
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|
|||
|
</section>
|