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: 599d1566a02b571412643b84
title: Ethiopian multiplication
title: エチオピア乗算
challengeType: 5
forumTopicId: 302257
dashedName: ethiopian-multiplication
@ -8,24 +8,24 @@ dashedName: ethiopian-multiplication
# --description--
Ethiopian multiplication is a method of multiplying integers using only addition, doubling, and halving.
エチオピア乗算は、加算、倍増、および半減のみを使用して整数を乗算する方法です。
**Method:**
**方法:**
<ol>
<li>Take two numbers to be multiplied and write them down at the top of two columns</li>
<li>In the left-hand column repeatedly halve the last number, discarding any remainders, and write the result below the last in the same column, until you write a value of <code>1</code></li>
<li>In the right-hand column repeatedly double the last number and write the result below. stop when you add a result in the same row as where the left hand column shows <code>1</code></li>
<li>Examine the table produced and discard any row where the value in the left column is even</li>
<li>Sum the values in the right-hand column that remain to produce the result of multiplying the original two numbers together</li>
<li>乗算対象の2つの数を取り、2つの列の上に書きます。</li>
<li>左側の列で、最後の数字を繰り返し2で割り、残りを捨て、値が <code>1</code> になるまで同じ列の最後に結果を書き込みます。</li>
<li>右側の列で、繰り返し最後の数字を2倍にして、結果を列の最後に書きます。 左側の列に <code>1</code> が表示されている行まで結果を入れ、その後停止します。</li>
<li>出来上がったテーブル見て、左側の列の値が偶数である行を削除します。</li>
<li>残っている右側の列の値を加算すると、元の2つの数を乗算した結果になります。</li>
</ol>
**For example:** `17 × 34`
**:** `17 × 34`
<pre>17 34
</pre>
Halving the first column:
最初の列の値を2で割ります。
<pre>17 34
8
@ -34,7 +34,7 @@ Halving the first column:
1
</pre>
Doubling the second column:
2列目を倍にします。
<pre>17 34
8 68
@ -43,7 +43,7 @@ Doubling the second column:
1 544
</pre>
Strike-out rows whose first cell is even:
最初の列が偶数の行の値を消します。
<pre>17 34
8 <strike>68</strike>
@ -52,7 +52,7 @@ Strike-out rows whose first cell is even:
1 544
</pre>
Sum the remaining numbers in the right-hand column:
右側の列の残りの数字を合計します。
<!-- markdownlint-disable MD003 -->
@ -67,55 +67,55 @@ Sum the remaining numbers in the right-hand column:
<!-- markdownlint-enable MD003 -->
So `17` multiplied by `34`, by the Ethiopian method is `578`.
エチオピア乗算で `17``34` を掛けると `578` になります。
# --instructions--
The task is to define three named functions/methods/procedures/subroutines:
タスクは、3つの名前付き関数/メソッド/プロシージャ/サブルーチンを定義することです。
<ol>
<li>one to halve an integer,</li>
<li>one to double an integer, and</li>
<li>one to state if an integer is even</li>
<li>整数を半分にする</li>
<li>整数を2倍にする</li>
<li>整数が偶数かどうかを示す</li>
</ol>
Use these functions to create a function that does Ethiopian multiplication.
これらを使ってエチオピア乗算を行う関数を作ります。
<!-- markdownlint-disable MD046-->
# --hints--
`eth_mult` should be a function.
`eth_mult` という関数です。
```js
assert(typeof eth_mult === 'function');
```
`eth_mult(17,34)` should return `578`.
`eth_mult(17,34)` `578` を返します。
```js
assert.equal(eth_mult(17, 34), 578);
```
`eth_mult(23,46)` should return `1058`.
`eth_mult(23,46)` `1058` を返します。
```js
assert.equal(eth_mult(23, 46), 1058);
```
`eth_mult(12,27)` should return `324`.
`eth_mult(12,27)` `324` を返します。
```js
assert.equal(eth_mult(12, 27), 324);
```
`eth_mult(56,98)` should return `5488`.
`eth_mult(56,98)` `5488` を返します。
```js
assert.equal(eth_mult(56, 98), 5488);
```
`eth_mult(63,74)` should return `4662`.
`eth_mult(63,74)` `4662` を返します。
```js
assert.equal(eth_mult(63, 74), 4662);