freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-270-cutting-squares.md

56 lines
1.2 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: 5900f47c1000cf542c50ff8e
challengeType: 5
videoUrl: ''
title: 问题270切割方块
---
## Description
<section id="description">放置具有整数尺寸N×N的正方形纸在原点处具有拐角并且沿x轴和y轴具有两个侧面。然后我们按照以下规则进行切割我们只在位于正方形不同侧面的两个点之间进行直线切割并且具有整数坐标。两个切口不能交叉但是几个切口可以在相同的边界点处相遇。继续进行直到不再进行合法削减。将任何反射或旋转计数为不同我们将CN称为切割N×N平方的方式的数量。例如C1= 2且C2= 30如下所示<p>什么是C30mod 108 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler270()</code>应该返回82282080。
testString: assert.strictEqual(euler270(), 82282080);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler270() {
// Good luck!
return true;
}
euler270();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>