Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-213-flea-circus.md
2022-01-20 20:30:18 +01:00

43 lines
952 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4411000cf542c50ff54
title: '問題 213: ノミのサーカス'
challengeType: 5
forumTopicId: 301855
dashedName: problem-213-flea-circus
---
# --description--
正方形のマスを並べた 30 × 30 の格子の中に 900 匹のノミがおり、最初は 1 マスにノミが 1 匹ずついます。
ベルが鳴ると、それぞれのノミは隣接するマスに不規則に飛びます (格子の端や角にいるノミを除き、通常は 4 方向のいずれかです)。
ベルが 50 回鳴った後に空になっているマスの数の期待値を求めなさい。 回答は、四捨五入して小数第 6 位まで示すこと。
# --hints--
`fleaCircus()``330.721154` を返す必要があります。
```js
assert.strictEqual(fleaCircus(), 330.721154);
```
# --seed--
## --seed-contents--
```js
function fleaCircus() {
return true;
}
fleaCircus();
```
# --solutions--
```js
// solution required
```