freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-147-rectangles-in-c...

55 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
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。如果它们中的每一个都是交叉阴影线则可以在这些较小的网格中放置以下数量的不同矩形1x11 2x14 3x18 1x24 2x218 </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>