Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-161-triominoes.chinese.md
Oliver Eyton-Williams 61460c8601 fix: insert blank line after ```
search and replace ```\n< with ```\n\n< to ensure there's an empty line
before closing tags
2020-08-16 04:45:20 +05:30

1.1 KiB
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f40d1000cf542c50ff20 5 Problem 161: Triominoes 问题161Triominoes

Description

三角形是由三个通过边缘连接的正方形组成的形状。有两种基本形式:

如果考虑所有可能的方向,则有六个:

任何n×m网格的nxm可以被3整除可以用三角形平铺。如果我们考虑通过反射或从另一个平铺旋转获得的倾斜不同有41种方式可以使用三角形平铺2乘9的网格

有多少种方式可以通过三角形以这种方式平铺9乘12的网格

Instructions

Tests

tests:
  - text: <code>euler161()</code>应该返回20574308184277972。
    testString: assert.strictEqual(euler161(), 20574308184277972);

Challenge Seed

function euler161() {
  // Good luck!
  return true;
}

euler161();

Solution

// solution required

/section>