chore(i18n,learn): processed translations (#44866)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f51a1000cf542c51002d
|
||||
title: 'Problem 430: Range flips'
|
||||
title: '問題 430: 範囲めくり'
|
||||
challengeType: 5
|
||||
forumTopicId: 302101
|
||||
dashedName: problem-430-range-flips
|
||||
@ -8,23 +8,23 @@ dashedName: problem-430-range-flips
|
||||
|
||||
# --description--
|
||||
|
||||
$N$ disks are placed in a row, indexed 1 to $N$ from left to right.
|
||||
$N$ 枚の円盤が一列に並べられ、左から右に 1 から $N$ までの番号が振られています。
|
||||
|
||||
Each disk has a black side and white side. Initially all disks show their white side.
|
||||
円盤にはそれぞれ黒い面と白い面があります。 最初は、すべての円盤の白い面が見えています。
|
||||
|
||||
At each turn, two, not necessarily distinct, integers $A$ and $B$ between 1 and $N$ (inclusive) are chosen uniformly at random. All disks with an index from $A$ to $B$ (inclusive) are flipped.
|
||||
各ターンで、相異なるとは限らない 2 つの整数 $A$, $B$ が、1 から $N$ までの間 (1 と $N$ を含む) から一様かつ無作為に選ばれます。 $A$ から $B$ まで ($A$ と $B$ を含む) の番号が振られたすべての円盤が裏返されます。
|
||||
|
||||
The following example shows the case $N = 8$. At the first turn $A = 5$ and $B = 2$, and at the second turn $A = 4$ and $B = 6$.
|
||||
下図は $N = 8$ の場合の例です。 最初のターンでは $A = 5$ と $B = 2$、2 回目のターンでは $A = 4$ と $B = 6$ が選ばれます。
|
||||
|
||||
<img class="img-responsive center-block" alt="example for N = 8, with first turn A = 5 and B = 2, and second turn A = 4 and B = 6" src="https://cdn.freecodecamp.org/curriculum/project-euler/range-flips.gif" style="background-color: white; padding: 10px;" />
|
||||
<img class="img-responsive center-block" alt="n = 8 の例。最初のターンでは A = 5 と B = 2、2 回目のターンでは A = 4 と B = 6" src="https://cdn.freecodecamp.org/curriculum/project-euler/range-flips.gif" style="background-color: white; padding: 10px;" />
|
||||
|
||||
Let $E(N, M)$ be the expected number of disks that show their white side after $M$ turns. We can verify that $E(3, 1) = \frac{10}{9}$, $E(3, 2) = \frac{5}{3}$, $E(10, 4) ≈ 5.157$ and $E(100, 10) ≈ 51.893$.
|
||||
$M$ 回のターンの後に白い面が見えている円盤の枚数の期待値を $E(N, M)$ とします。 $E(3, 1) = \frac{10}{9}$, $E(3, 2) = \frac{5}{3}$, $E(10, 4) ≈ 5.157$, $E(100, 10) ≈ 51.893$ であることを確認できます。
|
||||
|
||||
Find $E({10}^{10}, 4000)$. Give your answer rounded to 2 decimal places behind the decimal point.
|
||||
$E({10}^{10}, 4000)$ を求めなさい。 回答は、四捨五入して小数第 2 位まで示すこと。
|
||||
|
||||
# --hints--
|
||||
|
||||
`rangeFlips()` should return `5000624921.38`.
|
||||
`rangeFlips()` は `5000624921.38` を返す必要があります。
|
||||
|
||||
```js
|
||||
assert.strictEqual(rangeFlips(), 5000624921.38);
|
||||
|
Reference in New Issue
Block a user