56 lines
1.2 KiB
Markdown
56 lines
1.2 KiB
Markdown
---
|
||
id: 5900f5021000cf542c510014
|
||
challengeType: 5
|
||
title: 'Problem 405: A rectangular tiling'
|
||
videoUrl: ''
|
||
localeTitle: 问题405:矩形平铺
|
||
---
|
||
|
||
## Description
|
||
<section id="description">我们希望平铺一个长度是其宽度两倍的矩形。设T(0)为由单个矩形组成的平铺。对于n> 0,通过以下列方式替换所有瓦片,从T(n-1)获得T(n): <p>以下动画演示了从0到5的n的倾斜T(n): </p><p>设f(n)是四个瓦片在T(n)中相交的点数。例如,f(1)= 0,f(4)= 82并且f(109)mod 177 = 126897180。 </p><p>找到f(10k)为k = 1018,给出你的答案模数为177。 </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler405()</code>应返回237696125。
|
||
testString: 'assert.strictEqual(euler405(), 237696125, "<code>euler405()</code> should return 237696125.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler405() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler405();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|