freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-194-coloured-config...

1.3 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f42f1000cf542c50ff40 5 Problem 194: Coloured Configurations 问题194彩色配置

Description

考虑使用单位A和B构建的图形其中单位沿着垂直边缘粘合如图中所示。

类型abc的配置是由单元A和b单元B构成的图其中图的顶点使用多达c种颜色着色使得没有两个相邻顶点具有相同的颜色。上面的化合物图是类型2,2,6的配置的实例实际上对于所有c≥4的类型2,2c

令Nabc为类型abc的配置数。例如N1,0,3= 24N0,2,4= 92928N2,2,3= 20736。

找到N25,75,1984的最后8位数。

Instructions

Tests

tests:
  - text: <code>euler194()</code>应该返回61190912。
    testString: 'assert.strictEqual(euler194(), 61190912, "<code>euler194()</code> should return 61190912.");'

Challenge Seed

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

euler194();

Solution

// solution required