* 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
1.1 KiB
Markdown
45 lines
1.1 KiB
Markdown
---
|
||
id: 5900f4e81000cf542c50fffb
|
||
title: 问题380:惊人的迷宫!
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-380-amazing-mazes
|
||
---
|
||
|
||
# --description--
|
||
|
||
m×n迷宫是m×n矩形网格,其中墙壁放置在网格单元之间,使得从左上角正方形到任何其他正方形恰好有一条路径。以下是9×12迷宫和15×20迷宫的示例:
|
||
|
||
设C(m,n)为不同m×n个迷宫的数量。可以通过来自另一个迷宫的旋转和反射形成的迷宫被认为是不同的。
|
||
|
||
可以证实C(1,1)= 1,C(2,2)= 4,C(3,4)= 2415,C(9,12)= 2.5720e46(科学计数法四舍五入为5显着位)。找到C(100,500)并用科学计数法将你的答案写成五位有效数字。
|
||
|
||
在给出答案时,使用小写e来分隔尾数和指数。例如,如果答案是1234567891011,则答案格式为1.2346e12。
|
||
|
||
# --hints--
|
||
|
||
`euler380()`应该返回Infinity。
|
||
|
||
```js
|
||
assert.strictEqual(euler380(), Infinity);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler380() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler380();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|