freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-174-counting-the-nu...

24 lines
819 B
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: 5900f41a1000cf542c50ff2d
title: 问题174计算可以形成一个两个三个......不同排列的“空心”方形薄片的数量
challengeType: 5
videoUrl: ''
---
# --description--
我们将方形薄片定义为具有方形“孔”的方形轮廓使得该形状具有垂直和水平对称性。给定八个瓷砖可以仅以一种方式形成薄层3x3正方形中间有1x1个孔。但是使用32个瓷砖可以形成两个不同的薄片。
如果t表示使用的瓦片数我们将说t = 8是类型L1并且t = 32是类型L2。令Nn为t≤1000000的数使得t为Ln型;例如N15= 832.对于1≤n≤10ΣNn是多少
# --hints--
`euler174()`应该返回209566。
```js
assert.strictEqual(euler174(), 209566);
```
# --solutions--