56 lines
1.3 KiB
Markdown
56 lines
1.3 KiB
Markdown
|
---
|
|||
|
id: 5900f42f1000cf542c50ff40
|
|||
|
challengeType: 5
|
|||
|
title: 'Problem 194: Coloured Configurations'
|
|||
|
videoUrl: ''
|
|||
|
localeTitle: 问题194:彩色配置
|
|||
|
---
|
|||
|
|
|||
|
## Description
|
|||
|
<section id="description">考虑使用单位A:和B:构建的图形,其中单位沿着垂直边缘粘合,如图中所示。 <p>类型(a,b,c)的配置是由单元A和b单元B构成的图,其中图的顶点使用多达c种颜色着色,使得没有两个相邻顶点具有相同的颜色。上面的化合物图是类型(2,2,6)的配置的实例,实际上对于所有c≥4的类型(2,2,c)。 </p><p>令N(a,b,c)为类型(a,b,c)的配置数。例如,N(1,0,3)= 24,N(0,2,4)= 92928,N(2,2,3)= 20736。 </p><p>找到N(25,75,1984)的最后8位数。 </p></section>
|
|||
|
|
|||
|
## Instructions
|
|||
|
<section id="instructions">
|
|||
|
</section>
|
|||
|
|
|||
|
## Tests
|
|||
|
<section id='tests'>
|
|||
|
|
|||
|
```yml
|
|||
|
tests:
|
|||
|
- text: <code>euler194()</code>应该返回61190912。
|
|||
|
testString: 'assert.strictEqual(euler194(), 61190912, "<code>euler194()</code> should return 61190912.");'
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Challenge Seed
|
|||
|
<section id='challengeSeed'>
|
|||
|
|
|||
|
<div id='js-seed'>
|
|||
|
|
|||
|
```js
|
|||
|
function euler194() {
|
|||
|
// Good luck!
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
euler194();
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Solution
|
|||
|
<section id='solution'>
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|
|||
|
</section>
|