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