28 lines
634 B
Markdown
28 lines
634 B
Markdown
---
|
||
id: 5900f4431000cf542c50ff56
|
||
title: 问题215:无裂缝墙
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
---
|
||
|
||
# --description--
|
||
|
||
考虑用2×1和3×1砖(水平×垂直尺寸)建造墙壁的问题,使得为了额外的强度,水平相邻砖块之间的间隙从不在连续层中排列,即从不形成“运行”裂纹”。
|
||
|
||
例如,由于以红色显示的运行裂缝,以下9×3墙是不可接受的:
|
||
|
||
有八种形成无裂纹9×3壁的方法,写成W(9,3)= 8。
|
||
|
||
计算W(32,10)。
|
||
|
||
# --hints--
|
||
|
||
`euler215()`应该返回806844323190414。
|
||
|
||
```js
|
||
assert.strictEqual(euler215(), 806844323190414);
|
||
```
|
||
|
||
# --solutions--
|
||
|