chore(i18n,curriculum): update translations (#43463)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f3e01000cf542c50fef3
|
||||
title: 'Problema 116: Azulejos vermelhos, verdes ou azuis'
|
||||
title: 'Problema 116: Blocos vermelhos, verdes ou azuis'
|
||||
challengeType: 5
|
||||
forumTopicId: 301742
|
||||
dashedName: problem-116-red-green-or-blue-tiles
|
||||
@ -8,21 +8,21 @@ dashedName: problem-116-red-green-or-blue-tiles
|
||||
|
||||
# --description--
|
||||
|
||||
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).
|
||||
Uma fileira de cinco blocos quadrados pretos deve ser substituída por blocos oblongos coloridos, escolhidos entre vermelhos (comprimento dois), verdes (comprimento três) ou azuis (comprimento quatro).
|
||||
|
||||
Se forem escolhidos os azulejos vermelhos, haverá exatamente sete maneiras de fazer isso.
|
||||
Se forem escolhidos os blocos vermelhos, haverá exatamente sete maneiras de fazer isso.
|
||||
|
||||
<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;" />
|
||||
<img class="img-responsive center-block" alt="Formas possíveis de colocar um oblongo vermelho em uma linha com cinco unidades de comprimento" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-or-blue-tiles-1.png" style="background-color: white; padding: 10px;" />
|
||||
|
||||
Se escolhermos os blocos verdes, há três maneiras de fazer isso.
|
||||
|
||||
<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;" />
|
||||
<img class="img-responsive center-block" alt="Formas possíveis de colocar um oblongo verde em uma linha com cinco unidades de comprimento" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-or-blue-tiles-2.png" style="background-color: white; padding: 10px;" />
|
||||
|
||||
E se os blocos azuis forem escolhidos, há duas maneiras de fazer isso.
|
||||
|
||||
<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;" />
|
||||
<img class="img-responsive center-block" alt="Formas possíveis de colocar um oblongo azul em uma linha com cinco unidades de comprimento" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-or-blue-tiles-3.png" style="background-color: white; padding: 10px;" />
|
||||
|
||||
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?
|
||||
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 blocos 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 bloco colorido deve ser usado?
|
||||
|
||||
**Observação:** este problema está relacionado ao Problema 117.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f3e21000cf542c50fef4
|
||||
title: 'Problem 117: Red, green, and blue tiles'
|
||||
title: 'Problema 117: Azulejos vermelhos, verdes e azuis'
|
||||
challengeType: 5
|
||||
forumTopicId: 301743
|
||||
dashedName: problem-117-red-green-and-blue-tiles
|
||||
@ -8,17 +8,17 @@ dashedName: problem-117-red-green-and-blue-tiles
|
||||
|
||||
# --description--
|
||||
|
||||
Using a combination of black square tiles and oblong tiles chosen from: red tiles measuring two units, green tiles measuring three units, and blue tiles measuring four units, it is possible to tile a row measuring five units in length in exactly fifteen different ways.
|
||||
Usando uma combinação de blocos quadrados pretos e blocos oblongos selecionados entre: blocos vermelhos medindo duas unidades, blocos verdes medindo três unidades e blocos azuis medindo quatro unidades, é possível fazer fileiras de cinco unidades de comprimento exatamente de quinze formas diferentes.
|
||||
|
||||
<img class="img-responsive center-block" alt="Possible ways of placing red, green and blue oblongs on a row with length of five units" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-and-blue-tiles.png" style="background-color: white; padding: 10px;" />
|
||||
<img class="img-responsive center-block" alt="Formas possíveis de colocar oblongos vermelhos, verdes e azuis em uma linha com cinco unidades de comprimento" src="https://cdn.freecodecamp.org/curriculum/project-euler/red-green-and-blue-tiles.png" style="background-color: white; padding: 10px;" />
|
||||
|
||||
How many ways can a row measuring fifty units in length be tiled?
|
||||
De quantas maneiras uma fileira de cinquenta unidades de comprimento pode ser preenchida?
|
||||
|
||||
**Note**: This is related to Problem 116.
|
||||
**Observação**: este problema está relacionado ao Problema 116.
|
||||
|
||||
# --hints--
|
||||
|
||||
`redGreenBlueTilesTwo()` should return `100808458960497`.
|
||||
`redGreenBlueTilesTwo()` deve retornar `100808458960497`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(redGreenBlueTilesTwo(), 100808458960497);
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f3e21000cf542c50fef5
|
||||
title: 'Problem 118: Pandigital prime sets'
|
||||
title: 'Problema 118: Conjuntos de números primos pandigitais'
|
||||
challengeType: 5
|
||||
forumTopicId: 301744
|
||||
dashedName: problem-118-pandigital-prime-sets
|
||||
@ -8,13 +8,13 @@ dashedName: problem-118-pandigital-prime-sets
|
||||
|
||||
# --description--
|
||||
|
||||
Using all of the digits 1 through 9 and concatenating them freely to form decimal integers, different sets can be formed. Interestingly with the set $\\{2, 5, 47, 89, 631\\}$, all of the elements belonging to it are prime.
|
||||
Usando todos os dígitos de 1 a 9 e concatenando-os livremente para formar números inteiros decimais, diferentes conjuntos podem ser formados. É interessante que, com o conjunto $\\{2, 5, 47, 89, 631\\}$, todos os elementos pertencentes a ele são primos.
|
||||
|
||||
How many distinct sets containing each of the digits one through nine exactly once contain only prime elements?
|
||||
Quantos conjuntos distintos, contendo cada um dos algarismos de um a nove exatamente uma vez, são compostos apenas por elementos primos?
|
||||
|
||||
# --hints--
|
||||
|
||||
`pandigitalPrimeSets()` should return `44680`.
|
||||
`pandigitalPrimeSets()` deve retornar `44680`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(pandigitalPrimeSets(), 44680);
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f3e41000cf542c50fef6
|
||||
title: 'Problem 119: Digit power sum'
|
||||
title: 'Problema 119: Soma das potências dos dígitos'
|
||||
challengeType: 5
|
||||
forumTopicId: 301745
|
||||
dashedName: problem-119-digit-power-sum
|
||||
@ -8,17 +8,17 @@ dashedName: problem-119-digit-power-sum
|
||||
|
||||
# --description--
|
||||
|
||||
The number 512 is interesting because it is equal to the sum of its digits raised to some power: $5 + 1 + 2 = 8$, and $8^3 = 512$. Another example of a number with this property is $614656 = 28^4$.
|
||||
O número 512 é interessante porque é igual à soma de seus algarismos elevado a alguma potência: $5 + 1 + 2 = 8$, e $8^3 = 512$. Outro exemplo de um número com essa propriedade é $614656 = 28^4$.
|
||||
|
||||
We shall define an to be the $n-th$ term of this sequence and insist that a number must contain at least two digits to have a sum.
|
||||
Vamos definir um número para ser o $n-ésimo$ termo desta sequência e reforçar que um número deve conter pelo menos dois dígitos para ter uma soma.
|
||||
|
||||
You are given that $a_2 = 512$ and $a_{10} = 614656$.
|
||||
Você já sabe que $a_2 = 512$ e $a_{10} = 614656$.
|
||||
|
||||
Find $a_{30}$.
|
||||
Encontre $a_{30}$.
|
||||
|
||||
# --hints--
|
||||
|
||||
`digitPowerSum()` should return `248155780267521`.
|
||||
`digitPowerSum()` deve retornar `248155780267521`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(digitPowerSum(), 248155780267521);
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f3e41000cf542c50fef7
|
||||
title: 'Problem 120: Square remainders'
|
||||
title: 'Problema 120: Restos quadrados'
|
||||
challengeType: 5
|
||||
forumTopicId: 301747
|
||||
dashedName: problem-120-square-remainders
|
||||
@ -8,15 +8,15 @@ dashedName: problem-120-square-remainders
|
||||
|
||||
# --description--
|
||||
|
||||
Let `r` be the remainder when ${(a − 1)}^n + {(a + 1)}^n$ is divided by $a^2$.
|
||||
Considere que `r` seja o resto quando ${(a -- 1)}^n + {(a + 1)}^n$ é dividido por $a^2$.
|
||||
|
||||
For example, if $a = 7$ and $n = 3$, then $r = 42: 6^3 + 8^3 = 728 ≡ 42 \\ \text{mod}\\ 49$. And as `n` varies, so too will `r`, but for $a = 7$ it turns out that $r_{max} = 42$.
|
||||
Por exemplo, se $a = 7$ e $n = 3$, então $r = 42: 6^3 + 8^3 = 728 ≡ 42 \\ \text{mod}\\ 49$. Conforme `n` varia, `r` também vai variar, mas, para $a = 7$, temos que $r_{max} = 42$.
|
||||
|
||||
For $3 ≤ a ≤ 1000$, find $\sum{r}_{max}$.
|
||||
Para $3 ≤ a ≤ 1000$, encontre $\sum{r}_{max}$.
|
||||
|
||||
# --hints--
|
||||
|
||||
`squareRemainders()` should return `333082500`.
|
||||
`squareRemainders()` deve retornar `333082500`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(squareRemainders(), 333082500);
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f3e51000cf542c50fef8
|
||||
title: 'Problem 121: Disc game prize fund'
|
||||
title: 'Problema 121: Fundo de prêmio de jogo do disco'
|
||||
challengeType: 5
|
||||
forumTopicId: 301748
|
||||
dashedName: problem-121-disc-game-prize-fund
|
||||
@ -8,20 +8,20 @@ dashedName: problem-121-disc-game-prize-fund
|
||||
|
||||
# --description--
|
||||
|
||||
A bag contains one red disc and one blue disc. In a game of chance a player takes a disc at random and its colour is noted. After each turn the disc is returned to the bag, an extra red disc is added, and another disc is taken at random.
|
||||
Uma bolsa contém um disco vermelho e um disco azul. Em um jogo de azar, um jogador recebe um disco aleatório e sua cor é anotada. Após cada turno, o disco é devolvido à sacola, um disco vermelho extra é adicionado e outro disco é retirado aleatoriamente.
|
||||
|
||||
The player pays £1 to play and wins if they have taken more blue discs than red discs at the end of the game.
|
||||
O jogador paga £1 para jogar e ganha se tiver recebido mais discos azuis do que discos vermelhos no final do jogo.
|
||||
|
||||
If the game is played for four turns, the probability of a player winning is exactly 11/120, and so the maximum prize fund the banker should allocate for winning in this game would be £10 before they would expect to incur a loss. Note that any payout will be a whole number of pounds and also includes the original £1 paid to play the game, so in the example given the player actually wins £9.
|
||||
Se o jogo for jogado por quatro turnos, a probabilidade de um jogador vencer é exatamente 11/120, e, portanto, o fundo de prêmio máximo que a banca deve atribuir para a vitória neste jogo seria de 10 libras esterlinas antes de esperar sofrer uma perda. Observe que qualquer pagamento será um número inteiro de libras e que ele também incluirá a quantia de £1 original paga para jogar o jogo. Portanto, no exemplo dado, o jogador, ganha de fato 9 libras.
|
||||
|
||||
Find the maximum prize fund that should be allocated to a single game in which fifteen turns are played.
|
||||
Encontre o fundo máximo de prêmios que deve ser atribuído a um único jogo em que se jogam quinze turnos.
|
||||
|
||||
# --hints--
|
||||
|
||||
`euler121()` should return 2269.
|
||||
`discGamePrize()` deve retornar `2269`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler121(), 2269);
|
||||
assert.strictEqual(discGamePrize(), 2269);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@ -29,12 +29,12 @@ assert.strictEqual(euler121(), 2269);
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
function euler121() {
|
||||
function discGamePrize() {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
euler121();
|
||||
discGamePrize();
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f3b71000cf542c50feca
|
||||
title: 'Problem 75: Singular integer right triangles'
|
||||
title: 'Problema 75: Triângulos retângulos de lados inteiros e singulares'
|
||||
challengeType: 5
|
||||
forumTopicId: 302188
|
||||
dashedName: problem-75-singular-integer-right-triangles
|
||||
@ -8,7 +8,7 @@ dashedName: problem-75-singular-integer-right-triangles
|
||||
|
||||
# --description--
|
||||
|
||||
It turns out that 12 cm is the smallest length of wire that can be bent to form an integer sided right angle triangle in exactly one way, but there are many more examples.
|
||||
12 cm parece ser o menor comprimento de linha que pode ser determinado para formar um triângulo com ângulo reto inteiro exatamente de uma maneira, mas há muitos outros exemplos.
|
||||
|
||||
<div style='margin-left: 4em;'>
|
||||
<strong>12 cm:</strong> (3,4,5)<br>
|
||||
@ -19,41 +19,41 @@ It turns out that 12 cm is the smallest length of wire that can be bent to form
|
||||
<strong>48 cm:</strong> (12,16,20)<br><br>
|
||||
</div>
|
||||
|
||||
In contrast, some lengths of wire, like 20 cm, cannot be bent to form an integer sided right angle triangle, and other lengths allow more than one solution to be found; for example, using 120 cm it is possible to form exactly three different integer sided right angle triangles.
|
||||
Por outro lado, alguns comprimentos de linha, como 20 cm, não podem ser dobrados de modo a formar um triângulo retângulo com lados inteiros singulares, enquanto outros comprimentos permitem que se encontre mais de uma solução. Por exemplo, usar 120 cm torna possível formar exatamente três triângulos retângulos com lados inteiros singulares.
|
||||
|
||||
<div style='margin-left: 4em;'>
|
||||
<strong>120 cm:</strong> (30,40,50), (20,48,52), (24,45,51)<br><br>
|
||||
</div>
|
||||
|
||||
Given that L is the length of the wire, for how many values of L ≤ `n` can exactly one, integer sided right angle, triangle be formed?
|
||||
Considerando que L é o comprimento do fio, para quantos valores de L ≤ `n` é possível formar exatamente um triângulo retângulo de lados inteiros e singulares?
|
||||
|
||||
# --hints--
|
||||
|
||||
`singularIntRightTriangles(48)` should return a number.
|
||||
`singularIntRightTriangles(48)` deve retornar um número.
|
||||
|
||||
```js
|
||||
assert(typeof singularIntRightTriangles(48) === 'number');
|
||||
```
|
||||
|
||||
`singularIntRightTriangles(48)` should return `6`.
|
||||
`singularIntRightTriangles(48)` deve retornar `6`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(singularIntRightTriangles(48), 6);
|
||||
```
|
||||
|
||||
`singularIntRightTriangles(700000)` should return `75783`.
|
||||
`singularIntRightTriangles(700000)` deve retornar `75783`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(singularIntRightTriangles(700000), 75783);
|
||||
```
|
||||
|
||||
`singularIntRightTriangles(1000000)` should return `107876`.
|
||||
`singularIntRightTriangles(1000000)` deve retornar `107876`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(singularIntRightTriangles(1000000), 107876);
|
||||
```
|
||||
|
||||
`singularIntRightTriangles(1500000)` should return `161667`.
|
||||
`singularIntRightTriangles(1500000)` deve retornar `161667`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(singularIntRightTriangles(1500000), 161667);
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f3ba1000cf542c50fecd
|
||||
title: 'Problem 78: Coin partitions'
|
||||
title: 'Problema 78: Partições de moedas'
|
||||
challengeType: 5
|
||||
forumTopicId: 302191
|
||||
dashedName: problem-78-coin-partitions
|
||||
@ -8,51 +8,51 @@ dashedName: problem-78-coin-partitions
|
||||
|
||||
# --description--
|
||||
|
||||
Let ${p}(n)$ represent the number of different ways in which `n` coins can be separated into piles. For example, five coins can be separated into piles in exactly seven different ways, so ${p}(5) = 7$.
|
||||
Consideremos que ${p}(n)$ representa o número de diferentes maneiras pelas quais `n` moedas podem ser separadas em pilhas. Por exemplo, cinco moedas podem ser separadas em pilhas de exatamente sete maneiras diferentes, então ${p}(5) = 7$.
|
||||
|
||||
<div style='text-align: center;'>
|
||||
|
||||
| Coin piles |
|
||||
| Pilhas de moedas |
|
||||
| ----------------- |
|
||||
| OOOOO |
|
||||
| OOOO O |
|
||||
| OOO OO |
|
||||
| OOO O O |
|
||||
| OO OO O |
|
||||
| OO O O O |
|
||||
| O O O O O |
|
||||
| OOOO O |
|
||||
| OOO OO |
|
||||
| OOO O O |
|
||||
| OO OO O |
|
||||
| OO O O O |
|
||||
| O O O O O |
|
||||
|
||||
</div><br>
|
||||
|
||||
Find the least value of `n` for which ${p}(n)$ is divisible by `divisor`.
|
||||
Encontre o menor valor de `n` para o qual ${p}(n)$ é divisível pelo `divisor`.
|
||||
|
||||
# --hints--
|
||||
|
||||
`coinPartitions(7)` should return a number.
|
||||
`coinPartitions(7)` deve retornar um número.
|
||||
|
||||
```js
|
||||
assert(typeof coinPartitions(7) === 'number');
|
||||
```
|
||||
|
||||
`coinPartitions(7)` should return `5`.
|
||||
`coinPartitions(7)` deve retornar `5`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(coinPartitions(7), 5);
|
||||
```
|
||||
|
||||
`coinPartitions(10000)` should return `599`.
|
||||
`coinPartitions(10000)` deve retornar `599`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(coinPartitions(10000), 599);
|
||||
```
|
||||
|
||||
`coinPartitions(100000)` should return `11224`.
|
||||
`coinPartitions(100000)` deve retornar `11224`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(coinPartitions(100000), 11224);
|
||||
```
|
||||
|
||||
`coinPartitions(1000000)` should return `55374`.
|
||||
`coinPartitions(1000000)` deve retornar `55374`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(coinPartitions(1000000), 55374);
|
||||
|
Reference in New Issue
Block a user