55 lines
1.3 KiB
Markdown
55 lines
1.3 KiB
Markdown
|
---
|
|||
|
id: 5900f3ff1000cf542c50ff12
|
|||
|
challengeType: 5
|
|||
|
title: 'Problem 147: Rectangles in cross-hatched grids'
|
|||
|
videoUrl: ''
|
|||
|
localeTitle: 问题147:交叉阴影网格中的矩形
|
|||
|
---
|
|||
|
|
|||
|
## Description
|
|||
|
<section id="description">在3x2交叉阴影网格中,如图所示,总共37个不同的矩形可以位于该网格内。 <p>有5个小于3x2的网格,垂直和水平尺寸很重要,即1x1,2x1,3x1,1x2和2x2。如果它们中的每一个都是交叉阴影线,则可以在这些较小的网格中放置以下数量的不同矩形:1x1:1 2x1:4 3x1:8 1x2:4 2x2:18 </p><p>将它们添加到3x2网格中的37个,总共72个不同的矩形可以位于3x2和更小的网格中。 </p><p>在47x43和更小的网格中可以放置多少个不同的矩形? </p></section>
|
|||
|
|
|||
|
## Instructions
|
|||
|
undefined
|
|||
|
|
|||
|
## Tests
|
|||
|
<section id='tests'>
|
|||
|
|
|||
|
```yml
|
|||
|
tests:
|
|||
|
- text: <code>euler147()</code>应该返回846910284。
|
|||
|
testString: 'assert.strictEqual(euler147(), 846910284, "<code>euler147()</code> should return 846910284.");'
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Challenge Seed
|
|||
|
<section id='challengeSeed'>
|
|||
|
|
|||
|
<div id='js-seed'>
|
|||
|
|
|||
|
```js
|
|||
|
function euler147() {
|
|||
|
// Good luck!
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
euler147();
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Solution
|
|||
|
<section id='solution'>
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|
|||
|
</section>
|