* 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>
45 lines
985 B
Markdown
45 lines
985 B
Markdown
---
|
||
id: 5900f42f1000cf542c50ff40
|
||
title: 问题194:彩色配置
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-194-coloured-configurations
|
||
---
|
||
|
||
# --description--
|
||
|
||
考虑使用单位A:和B:构建的图形,其中单位沿着垂直边缘粘合,如图中所示。
|
||
|
||
类型(a,b,c)的配置是由单元A和b单元B构成的图,其中图的顶点使用多达c种颜色着色,使得没有两个相邻顶点具有相同的颜色。上面的化合物图是类型(2,2,6)的配置的实例,实际上对于所有c≥4的类型(2,2,c)。
|
||
|
||
令N(a,b,c)为类型(a,b,c)的配置数。例如,N(1,0,3)= 24,N(0,2,4)= 92928,N(2,2,3)= 20736。
|
||
|
||
找到N(25,75,1984)的最后8位数。
|
||
|
||
# --hints--
|
||
|
||
`euler194()`应该返回61190912。
|
||
|
||
```js
|
||
assert.strictEqual(euler194(), 61190912);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler194() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler194();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|