64 lines
980 B
Markdown
64 lines
980 B
Markdown
---
|
||
id: 5900f5271000cf542c510039
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
localeTitle: 问题442:十一个整数
|
||
---
|
||
|
||
## Description
|
||
<section id="description">
|
||
如果整数的十进制扩展不包含任何表示11的幂的子串(除1之外),则称其为十一无码。
|
||
|
||
例如,2404和13431不包含11,而911和4121331不是。
|
||
|
||
令E(n)为第n个正十一无整数。 例如,E(3)= 3,E(200)= 213和E(500’000)= 531563。
|
||
|
||
找出E(1018)。
|
||
</section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler442()</code>应该返回1295552661530920200。
|
||
testString: assert.strictEqual(euler442(), 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>
|