* 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>
41 lines
739 B
Markdown
41 lines
739 B
Markdown
---
|
||
id: 5900f4411000cf542c50ff54
|
||
title: 问题213:跳蚤马戏团
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-213-flea-circus
|
||
---
|
||
|
||
# --description--
|
||
|
||
一个30×30的正方形网格包含900个跳蚤,最初是每平方一个跳蚤。当响铃响起时,每个跳蚤随机跳到相邻的广场(通常有4种可能,除了网格边缘或角落处的跳蚤)。
|
||
|
||
在响铃50次后,预计的未占用方格数量是多少?将您的答案四舍五入到小数点后六位。
|
||
|
||
# --hints--
|
||
|
||
`euler213()`应返回330.721154。
|
||
|
||
```js
|
||
assert.strictEqual(euler213(), 330.721154);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler213() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler213();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|