chore(i18n,learn): processed translations (#44866)

This commit is contained in:
camperbot
2022-01-22 20:38:20 +05:30
committed by GitHub
parent d039479e66
commit 43a2a0a395
324 changed files with 2907 additions and 2916 deletions

View File

@ -1,6 +1,6 @@
---
id: 59e0a8df964e4540d5abe599
title: Execute Brain****
title: Brain****の実行
challengeType: 5
forumTopicId: 302261
dashedName: execute-brain
@ -8,54 +8,54 @@ dashedName: execute-brain
# --description--
Write a function to implement a Brain\*\*\*\* interpreter. The function will take a string as a parameter and should return a string as the output. More details are given below:
Brain\*\*\*\*\* インタプリタを実行する関数を作成します。 関数はパラメータとして文字列を取り、出力文字列を返します。 詳細は以下の通りです。
RCBF is a set of [Brainf\*\*\*](https://rosettacode.org/wiki/Brainf*** "Brainf\*\*\*") compilers and interpreters written for Rosetta Code in a variety of languages.
RCBFは ロゼッタコード用に様々な言語で書かれた[Brainf\*\*\*](https://rosettacode.org/wiki/Brainf*** "Brainf\*\*\*") コンパイラおよびインタプリタのセットです。
Below are links to each of the versions of RCBF.
以下は、RCBFの各バージョンへのリンクです。
An implementation need only properly implement the following instructions:
実装には以下の手順を適切に実行する必要があります。
| Command | Description |
| ------------------------- | ------------------------------------------------------------------------------------------ |
| <code>></code> | Move the pointer to the right |
| <code>&lt;</code> | Move the pointer to the left |
| <code>+</code> | Increment the memory cell under the pointer |
| <code>-</code> | Decrement the memory cell under the pointer |
| <code>.</code> | Output the character signified by the cell at the pointer |
| <code>,</code> | Input a character and store it in the cell at the pointer |
| <code>\[</code> | Jump past the matching <code>]</code> if the cell under the pointer is 0 |
| <code>]</code> | Jump back to the matching <code>\[</code> if the cell under the pointer is nonzero |
| コマンド | 説明 |
| ------------------------- | ---------------------------------------------------------- |
| <code>></code> | ポインタを右に移動します |
| <code>&lt;</code> | ポインタを左に移動します |
| <code>+</code> | ポインタの下にあるメモリーセルを増やします |
| <code>-</code> | ポインタの下にあるメモリーセルを減らします |
| <code>.</code> | ポインターのセルで示された文字を出力します |
| <code>,</code> | 文字を入力し、ポインタのセルに格納します |
| <code>\[</code> | ポインタの下のセルが 0 の場合、一致する <code>]</code> をジャンプします |
| <code>]</code> | ポインタの下のセルがゼロでない場合、一致する <code>\[</code> にジャンプして戻ります |
Any cell size is allowed, EOF (*E*nd-*O*-*F*ile) support is optional, as is whether you have bounded or unbounded memory.
セルのサイズに制限はありません。メモリに制限があるかどうかに関わらず、EOF (*E*nd-*O*-*F*ile) のサポートは任意です。
# --hints--
`brain(bye)` should return a string
`brain(bye)` は文字列を返します。
```js
assert(typeof brain(bye) === 'string');
```
`brain("++++++[>++++++++++<-]>+++++.")` should return "A"
`brain("++++++[>++++++++++<-]>+++++.")` は「A」を返します。
```js
assert.equal(brain('++++++[>++++++++++<-]>+++++.'), 'A');
```
`brain(bye)` should return `Goodbye, World!\r\n`
`brain(bye)` `Goodbye, World!\r\n` を返します。
```js
assert.equal(brain(bye), 'Goodbye, World!\r\n');
```
`brain(hello)` should return `Hello World!\n`
`brain(hello)` `Hello World!\n` を返します。
```js
assert.equal(brain(hello), 'Hello World!\n');
```
`brain(fib)` should return `1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89`
`brain(fib)` `1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89` を返します。
```js
assert.equal(brain(fib), '1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89');