56 lines
1.1 KiB
Markdown
56 lines
1.1 KiB
Markdown
---
|
||
id: 5900f4431000cf542c50ff56
|
||
challengeType: 5
|
||
title: 'Problem 215: Crack-free Walls'
|
||
videoUrl: ''
|
||
localeTitle: 问题215:无裂缝墙
|
||
---
|
||
|
||
## Description
|
||
<section id="description">考虑用2×1和3×1砖(水平×垂直尺寸)建造墙壁的问题,使得为了额外的强度,水平相邻砖块之间的间隙从不在连续层中排列,即从不形成“运行”裂纹”。 <p>例如,由于以红色显示的运行裂缝,以下9×3墙是不可接受的: </p><p>有八种形成无裂纹9×3壁的方法,写成W(9,3)= 8。 </p><p>计算W(32,10)。 </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler215()</code>应该返回806844323190414。
|
||
testString: 'assert.strictEqual(euler215(), 806844323190414, "<code>euler215()</code> should return 806844323190414.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler215() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler215();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|