chore(i18n,curriculum): processed translations (#43435)

This commit is contained in:
camperbot
2021-09-13 07:13:43 -07:00
committed by GitHub
parent 8d33ff21f4
commit 3d50ac03ad
27 changed files with 119 additions and 113 deletions

View File

@ -1,6 +1,6 @@
---
id: 5900f3db1000cf542c50feee
title: 'Problem 111: Primes with runs'
title: 'Problema 111: Primos com execuções'
challengeType: 5
forumTopicId: 301736
dashedName: problem-111-primes-with-runs
@ -8,34 +8,34 @@ dashedName: problem-111-primes-with-runs
# --description--
Considering 4-digit primes containing repeated digits it is clear that they cannot all be the same: 1111 is divisible by 11, 2222 is divisible by 22, and so on. But there are nine 4-digit primes containing three ones:
Considerando primos de 4 algarismos contendo dígitos repetidos, é claro que eles não podem ser todos iguais: 1111 é divisível por 11, 2222 é divisível por 22, e assim por diante. Mas há nove primos de 4 algarismos que contêm três números 1:
$$1117, 1151, 1171, 1181, 1511, 1811, 2111, 4111, 8111$$
We shall say that $M(n, d)$ represents the maximum number of repeated digits for an n-digit prime where d is the repeated digit, $N(n, d)$ represents the number of such primes, and $S(n, d)$ represents the sum of these primes.
Vamos dizer que $M(n, d)$ representa o número máximo de dígitos repetidos para um primo de n algarismos, onde d é o dígito repetido, $N(n, d)$ representa quantos desses primos existem, e $S(n, d)$ representa a soma desses primos.
So $M(4, 1) = 3$ is the maximum number of repeated digits for a 4-digit prime where one is the repeated digit, there are $N(4, 1) = 9$ such primes, and the sum of these primes is $S(4, 1) = 22275$. It turns out that for d = 0, it is only possible to have $M(4, 0) = 2$ repeated digits, but there are $N(4, 0) = 13$ such cases.
Então $M(4, 1) = 3$ é o número máximo de dígitos repetidos para um primo de 4 algarismos, onde 1 é o dígito repetido, há $N(4, 1) = 9$ primos desses, e a soma desses primos é $S(4, 1) = 22275$. Acontece que, para d = 0, só é possível ter $M(4, 0) = 2$ dígitos repetidos, mas há $N(4, 0) = 13$ desses casos.
In the same way we obtain the following results for 4-digit primes.
Da mesma forma, obtemos os seguintes resultados para primos de 4 algarismos.
| Digit, d | $M(4, d)$ | $N(4, d)$ | $S(4, d)$ |
| -------- | --------- | --------- | --------- |
| 0 | 2 | 13 | 67061 |
| 1 | 3 | 9 | 22275 |
| 2 | 3 | 1 | 2221 |
| 3 | 3 | 12 | 46214 |
| 4 | 3 | 2 | 8888 |
| 5 | 3 | 1 | 5557 |
| 6 | 3 | 1 | 6661 |
| 7 | 3 | 9 | 57863 |
| 8 | 3 | 1 | 8887 |
| 9 | 3 | 7 | 48073 |
| Dígito, d | $M(4, d)$ | $N(4, d)$ | $S(4, d)$ |
| --------- | --------- | --------- | --------- |
| 0 | 2 | 13 | 67061 |
| 1 | 3 | 9 | 22275 |
| 2 | 3 | 1 | 2221 |
| 3 | 3 | 12 | 46214 |
| 4 | 3 | 2 | 8888 |
| 5 | 3 | 1 | 5557 |
| 6 | 3 | 1 | 6661 |
| 7 | 3 | 9 | 57863 |
| 8 | 3 | 1 | 8887 |
| 9 | 3 | 7 | 48073 |
For d = 0 to 9, the sum of all $S(4, d)$ is 273700. Find the sum of all $S(10, d)$.
Para d = 0 até 9, a soma de todos $S(4, d)$ é 273700. Calcule a soma de todos os $S(10, d)$.
# --hints--
`primesWithRuns()` should return `612407567715`.
`primesWithRuns()` deve retornar `612407567715`.
```js
assert.strictEqual(primesWithRuns(), 612407567715);

View File

@ -1,6 +1,6 @@
---
id: 5900f3dd1000cf542c50feef
title: 'Problem 112: Bouncy numbers'
title: 'Problema 112: Números saltitantes'
challengeType: 5
forumTopicId: 301738
dashedName: problem-112-bouncy-numbers
@ -8,21 +8,21 @@ dashedName: problem-112-bouncy-numbers
# --description--
Working from left-to-right if no digit is exceeded by the digit to its left it is called an increasing number; for example, 134468.
Trabalhando da esquerda para a direita, se nenhum algarismo for excedido pelo algarismo à sua esquerda, chamamos isso de um número crescente; por exemplo, 134468.
Similarly if no digit is exceeded by the digit to its right it is called a decreasing number; for example, 66420.
De igual modo, se nenhum algarismo for excedido pelo algarismo à sua direita, chamamos de número decrescente; por exemplo, 66420.
We shall call a positive integer that is neither increasing nor decreasing a "bouncy" number; for example, 155349.
Vamos chamar um inteiro positivo que não aumenta nem diminui de número "saltitante"; por exemplo, 155349.
Clearly there cannot be any bouncy numbers below one-hundred, but just over half of the numbers below one-thousand (525) are bouncy. In fact, the least number for which the proportion of bouncy numbers first reaches 50% is 538.
Claramente, não pode haver números saltitantes abaixo de cem, mas apenas pouco mais da metade dos números abaixo de mil (525) são saltitantes. Na verdade, o menor número para o qual a proporção de números saltitantes atinge primeiro os 50% é 538.
Surprisingly, bouncy numbers become more and more common and by the time we reach 21780 the proportion of bouncy numbers is equal to 90%.
Surpreendentemente, os números saltitantes tornam-se cada vez mais comuns e, quando atingimos 21780, a proporção de números saltitantes equivalerá a 90%.
Find the least number for which the proportion of bouncy numbers is exactly 99%.
Encontre o número mínimo para o qual a proporção de números saltitantes é exatamente 99%.
# --hints--
`bouncyNumbers()` should return `1587000`.
`bouncyNumbers()` deve retornar `1587000`.
```js
assert.strictEqual(bouncyNumbers(), 1587000);

View File

@ -1,6 +1,6 @@
---
id: 5900f3dd1000cf542c50fef0
title: 'Problem 113: Non-bouncy numbers'
title: 'Problema 113: Números não saltitantes'
challengeType: 5
forumTopicId: 301739
dashedName: problem-113-non-bouncy-numbers
@ -8,19 +8,19 @@ dashedName: problem-113-non-bouncy-numbers
# --description--
Working from left-to-right if no digit is exceeded by the digit to its left it is called an increasing number; for example, 134468.
Trabalhando da esquerda para a direita, se nenhum dígito for excedido pelo dígito à sua esquerda, é chamado de número crescente. Por exemplo, 134468.
Similarly if no digit is exceeded by the digit to its right it is called a decreasing number; for example, 66420.
Da mesma forma, se nenhum dígito for excedido pelo dígito à sua direita, é chamado de número decrescente. Por exemplo, 66420.
We shall call a positive integer that is neither increasing nor decreasing a "bouncy" number; for example, 155349.
Chamaremos um número inteiro positivo que não aumenta nem diminui um número "saltitante"; por exemplo, 155349.
As n increases, the proportion of bouncy numbers below n increases such that there are only 12951 numbers below one-million that are not bouncy and only 277032 non-bouncy numbers below ${10}^{10}$.
À medida que n aumenta, a proporção de números saltitantes abaixo de n aumenta de tal forma que há apenas 12951 números abaixo de um milhão que não são saltitantes, e apenas 277032 números não saltitantes abaixo de ${10}^{10}$.
How many numbers below a googol (${10}^{100}$) are not bouncy?
Quantos números abaixo de um googol (${10}^{100}$) não são saltitantes?
# --hints--
`nonBouncyNumbers()` should return `51161058134250`.
`nonBouncyNumbers()` deve retornar `51161058134250`.
```js
assert.strictEqual(nonBouncyNumbers(), 51161058134250);

View File

@ -1,6 +1,6 @@
---
id: 5900f3e01000cf542c50fef2
title: 'Problem 114: Counting block combinations I'
title: 'Problema 114: Contando combinações de blocos I'
challengeType: 5
forumTopicId: 301740
dashedName: problem-114-counting-block-combinations-i
@ -8,17 +8,17 @@ dashedName: problem-114-counting-block-combinations-i
# --description--
A row measuring seven units in length has red blocks with a minimum length of three units placed on it, such that any two red blocks (which are allowed to be different lengths) are separated by at least one black square. There are exactly seventeen ways of doing this.
Uma linha de sete unidades de comprimento tem blocos vermelhos com um comprimento mínimo de três unidades colocados nela, de tal forma que dois blocos vermelhos (que podem ter comprimentos diferentes) são separados por pelo menos um quadrado preto. Há exatamente dezessete maneiras de se fazer isso.
<img class="img-responsive center-block" alt="Possible ways of placing block with a minimum length of three units, on a row with length of seven units" src="https://cdn.freecodecamp.org/curriculum/project-euler/counting-block-combinations-i.png" style="background-color: white; padding: 10px;" />
<img class="img-responsive center-block" alt="Formas possíveis de se colocar um bloco, com um comprimento mínimo de três unidades, em uma fileira com comprimento de sete unidades" src="https://cdn.freecodecamp.org/curriculum/project-euler/counting-block-combinations-i.png" style="background-color: white; padding: 10px;" />
How many ways can a row measuring fifty units in length be filled?
De quantas maneiras uma fileira de cinquenta unidades de comprimento pode ser preenchida?
**Note:** Although the example above does not lend itself to the possibility, in general it is permitted to mix block sizes. For example, on a row measuring eight units in length you could use red (3), black (1), and red (4).
**Observação:** embora o exemplo acima não se preste a essa possibilidade, em geral é permitido misturar tamanhos de bloco. Por exemplo, em uma fileira com oito unidades de comprimento, você poderia usar vermelho (3), preto (1), e vermelho (4).
# --hints--
`countingBlockOne()` should return `16475640049`.
`countingBlockOne()` deve retornar `16475640049`.
```js
assert.strictEqual(countingBlockOne(), 16475640049);

View File

@ -1,6 +1,6 @@
---
id: 5900f3df1000cf542c50fef1
title: 'Problem 115: Counting block combinations II'
title: 'Problema 115: Contando combinações de blocos II'
challengeType: 5
forumTopicId: 301741
dashedName: problem-115-counting-block-combinations-ii
@ -8,23 +8,23 @@ dashedName: problem-115-counting-block-combinations-ii
# --description--
A row measuring `n` units in length has red blocks with a minimum length of `m` units placed on it, such that any two red blocks (which are allowed to be different lengths) are separated by at least one black square.
Uma linha medindo `n` unidades de comprimento tem blocos vermelhos com um comprimento mínimo de `m` unidades colocadas nele, de tal forma que dois blocos vermelhos (que podem ter comprimentos diferentes) são separados por pelo menos um quadrado preto.
Let the fill-count function, $F(m, n)$, represent the number of ways that a row can be filled.
Deixe a função de preenchimento, $F(m, n)$, representar o número de formas que uma fila pode ser preenchida.
For example, $F(3, 29) = 673135$ and $F(3, 30) = 1089155$.
Por exemplo, $F(3, 29) = 673135$ e $F(3, 30) = 1089155$.
That is, for m = 3, it can be seen that n = 30 is the smallest value for which the fill-count function first exceeds one million.
Ou seja, para m = 3, pode ser visto que n = 30 é o menor valor para o qual a função de contagem de preenchimento excede primeiro um milhão.
In the same way, for m = 10, it can be verified that $F(10, 56) = 880711$ and $F(10, 57) = 1148904$, so n = 57 is the least value for which the fill-count function first exceeds one million.
Da mesma maneira, para m = 10, pode ser verificado que $F(10, 56) = 880711$ e $F(10, 57) = 1148904$, então n = 57 é o menor valor para o qual a função de contagem de preenchimento excede primeiro um milhão.
For m = 50, find the least value of `n` for which the fill-count function first exceeds one million.
Para m = 50, encontre o menor valor de `n` para o qual a função de contagem de preenchimento excede primeiro um milhão.
**Note:** This is a more difficult version of Problem 114.
**Observação:** esta é uma versão mais difícil do Problema 114.
# --hints--
`countingBlockTwo()` should return `168`.
`countingBlockTwo()` deve retornar `168`.
```js
assert.strictEqual(countingBlockTwo(), 168);

View File

@ -1,6 +1,6 @@
---
id: 5900f3e01000cf542c50fef3
title: 'Problem 116: Red, green or blue tiles'
title: 'Problema 116: Azulejos vermelhos, verdes ou azuis'
challengeType: 5
forumTopicId: 301742
dashedName: problem-116-red-green-or-blue-tiles
@ -8,27 +8,27 @@ dashedName: problem-116-red-green-or-blue-tiles
# --description--
A row of five black square tiles is to have a number of its tiles replaced with coloured oblong tiles chosen from red (length two), green (length three), or blue (length four).
Uma fileira de cinco azulejos quadrados pretos deve ser substituída por azulejos oblongos coloridos, escolhidos entre vermelho (comprimento dois), verde (comprimento três), ou azul (comprimento quatro).
If red tiles are chosen there are exactly seven ways this can be done.
Se forem escolhidos os azulejos vermelhos, haverá exatamente sete maneiras de fazer isso.
<img class="img-responsive center-block" alt="Possible ways to placing red oblong on a row with length of five units" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-or-blue-tiles-1.png" style="background-color: white; padding: 10px;" />
<img class="img-responsive center-block" alt="Formas possíveis de colocar um oblongo vermelho em uma linha com comprimento de cinco unidades" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-or-blue-tiles-1.png" style="background-color: white; padding: 10px;" />
If green tiles are chosen there are three ways.
Se escolhermos os blocos verdes, há três maneiras de fazer isso.
<img class="img-responsive center-block" alt="Possible ways of placing green oblong on a row with length of five units" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-or-blue-tiles-2.png" style="background-color: white; padding: 10px;" />
<img class="img-responsive center-block" alt="Formas possíveis de colocar um oblongo verde em uma linha com comprimento de cinco unidades" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-or-blue-tiles-2.png" style="background-color: white; padding: 10px;" />
And if blue tiles are chosen there are two ways.
E se os blocos azuis forem escolhidos, há duas maneiras de fazer isso.
<img class="img-responsive center-block" alt="Possible ways of placing blue oblong on a row with length of five units" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-or-blue-tiles-3.png" style="background-color: white; padding: 10px;" />
<img class="img-responsive center-block" alt="Formas possíveis de colocar um oblongo azul em uma linha com comprimento de cinco unidades" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-or-blue-tiles-3.png" style="background-color: white; padding: 10px;" />
Assuming that colors cannot be mixed there are 7 + 3 + 2 = 12 ways of replacing the black tiles in a row measuring five units in length. How many different ways can the black tiles in a row measuring fifty units in length be replaced if colors cannot be mixed and at least one colored tile must be used?
Assumindo que as cores não podem ser misturadas, há 7 + 3 + 2 = 12 maneiras de substituir os blocos pretos em sequência, medindo cinco unidades de comprimento. De quantas maneiras diferentes os azulejos pretos em uma fileira medindo cinquenta unidades de comprimento podem ser substituídos, se as cores não podem ser misturadas e pelo menos um azulejo colorido deve ser usado?
**Note:** This is related to Problem 117.
**Observação:** este problema está relacionado ao Problema 117.
# --hints--
`redGreenBlueOne()` should return `20492570929`.
`redGreenBlueOne()` deve retornar `20492570929`.
```js
assert.strictEqual(redGreenBlueOne(), 20492570929);