chore(learn): Applied MDX format to Chinese curriculum files (#40462)
This commit is contained in:
@ -1,55 +1,23 @@
|
||||
---
|
||||
id: 5900f4f61000cf542c510008
|
||||
title: 问题393:迁移蚂蚁
|
||||
challengeType: 5
|
||||
videoUrl: ''
|
||||
title: 问题393:迁移蚂蚁
|
||||
---
|
||||
|
||||
## Description
|
||||
<section id="description"> n×n正方形网格包含n2个蚂蚁,每平方一个蚂蚁。所有蚂蚁决定同时移动到相邻的广场(通常有4种可能,除了网格边缘或角落处的蚂蚁)。我们将f(n)定义为在没有任何蚂蚁在同一个正方形上结束并且没有任何两个蚂蚁穿过两个正方形之间的相同边缘时可以发生的方式的数量。 <p>给出f(4)= 88.求f(10)。 </p></section>
|
||||
# --description--
|
||||
|
||||
## Instructions
|
||||
<section id="instructions">
|
||||
</section>
|
||||
n×n正方形网格包含n2个蚂蚁,每平方一个蚂蚁。所有蚂蚁决定同时移动到相邻的广场(通常有4种可能,除了网格边缘或角落处的蚂蚁)。我们将f(n)定义为在没有任何蚂蚁在同一个正方形上结束并且没有任何两个蚂蚁穿过两个正方形之间的相同边缘时可以发生的方式的数量。
|
||||
|
||||
## Tests
|
||||
<section id='tests'>
|
||||
给出f(4)= 88.求f(10)。
|
||||
|
||||
```yml
|
||||
tests:
|
||||
- text: <code>euler393()</code>应该返回112398351350823100。
|
||||
testString: assert.strictEqual(euler393(), 112398351350823100);
|
||||
# --hints--
|
||||
|
||||
```
|
||||
|
||||
</section>
|
||||
|
||||
## Challenge Seed
|
||||
<section id='challengeSeed'>
|
||||
|
||||
<div id='js-seed'>
|
||||
`euler393()`应该返回112398351350823100。
|
||||
|
||||
```js
|
||||
function euler393() {
|
||||
// Good luck!
|
||||
return true;
|
||||
}
|
||||
|
||||
euler393();
|
||||
|
||||
assert.strictEqual(euler393(), 112398351350823100);
|
||||
```
|
||||
|
||||
</div>
|
||||
# --solutions--
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
## Solution
|
||||
<section id='solution'>
|
||||
|
||||
```js
|
||||
// solution required
|
||||
```
|
||||
|
||||
/section>
|
||||
|
Reference in New Issue
Block a user