chore(i18n,learn): processed translations (#44866)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f4761000cf542c50ff88
|
||||
title: 'Problem 265: Binary Circles'
|
||||
title: '問題 265: 2 進数の円'
|
||||
challengeType: 5
|
||||
forumTopicId: 301914
|
||||
dashedName: problem-265-binary-circles
|
||||
@ -8,26 +8,26 @@ dashedName: problem-265-binary-circles
|
||||
|
||||
# --description--
|
||||
|
||||
$2^N$ binary digits can be placed in a circle so that all the $N$-digit clockwise subsequences are distinct.
|
||||
2 進数の数字 $2^N$ 個を、時計回りの $N$ 桁の部分列がすべて相異なるように円形に並べることができます。
|
||||
|
||||
For $N = 3$, two such circular arrangements are possible, ignoring rotations:
|
||||
$N = 3$のとき、回転を無視すればこのような円形の配置は 2 通りあります。
|
||||
|
||||
<img class="img-responsive center-block" alt="two circular arrangements for N = 3" src="https://cdn.freecodecamp.org/curriculum/project-euler/binary-circles.gif" style="background-color: white; padding: 10px;" />
|
||||
<img class="img-responsive center-block" alt="2 通りの円形配置 (N = 3)" src="https://cdn.freecodecamp.org/curriculum/project-euler/binary-circles.gif" style="background-color: white; padding: 10px;" />
|
||||
|
||||
For the first arrangement, the 3-digit subsequences, in clockwise order, are: 000, 001, 010, 101, 011, 111, 110 and 100.
|
||||
1 つ目の配置では、3 桁の部分列は時計回りに 000, 001, 010, 101, 011, 111, 110, 100 です。
|
||||
|
||||
Each circular arrangement can be encoded as a number by concatenating the binary digits starting with the subsequence of all zeros as the most significant bits and proceeding clockwise. The two arrangements for $N = 3$ are thus represented as 23 and 29:
|
||||
0 のみからなる部分列を最上位の数字としてそこから開始し、時計回りに 2 進法の数字をつなげていくと、それぞれの円形配置を 1 つの数に変換できます。 したがって、$N = 3$ のとき、上の 2 つの配置は次のように 23 および 29 として表されます。
|
||||
|
||||
$${00010111}_2 = 23\\\\
|
||||
{00011101}_2 = 29$$
|
||||
|
||||
Calling $S(N)$ the sum of the unique numeric representations, we can see that $S(3) = 23 + 29 = 52$.
|
||||
一意の数値表現の和を $S(N)$ とすると、$S(3) = 23 + 29 = 52$ であることが分かります。
|
||||
|
||||
Find $S(5)$.
|
||||
$S(5)$ を求めなさい。
|
||||
|
||||
# --hints--
|
||||
|
||||
`binaryCircles()` should return `209110240768`.
|
||||
`binaryCircles()` は `209110240768` を返す必要があります。
|
||||
|
||||
```js
|
||||
assert.strictEqual(binaryCircles(), 209110240768);
|
||||
|
Reference in New Issue
Block a user