freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-189-tri-colouring-a-triangular-grid.md
Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

1.0 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4291000cf542c50ff3c 问题189三角网格三色 5 problem-189-tri-colouring-a-triangular-grid

--description--

考虑以下64个三角形的配置

我们希望用三种颜色中的一种为每个三角形的内部着色:红色,绿色或蓝色,这样就不会有两个相邻的三角形具有相同的颜色。这种着色应称为有效。这里,如果两个三角形共享边缘,则称它们是相邻的。注意:如果它们只共享一个顶点,那么它们不是邻居。

例如,以下是上面网格的有效着色:

通过旋转或反射从着色C获得的着色C'被认为与C不同除非两者相同。

上述配置有多少种不同的有效着色?

--hints--

euler189()应该返回10834893628237824。

assert.strictEqual(euler189(), 10834893628237824);

--seed--

--seed-contents--

function euler189() {

  return true;
}

euler189();

--solutions--

// solution required