chore(i18n,curriculum): update translations (#44283)

This commit is contained in:
camperbot
2021-11-29 08:32:04 -08:00
committed by GitHub
parent aa9215b111
commit a8b0332720
124 changed files with 1217 additions and 945 deletions

View File

@@ -1,6 +1,6 @@
---
id: 5900f5431000cf542c510055
title: 'Problem 470: Super Ramvok'
title: 'Problema 470: Super Ramvok'
challengeType: 5
forumTopicId: 302146
dashedName: problem-470-super-ramvok
@@ -8,26 +8,26 @@ dashedName: problem-470-super-ramvok
# --description--
Consider a single game of Ramvok:
Considere um único jogo de Ramvok:
Let t represent the maximum number of turns the game lasts. If t = 0, then the game ends immediately. Otherwise, on each turn i, the player rolls a die. After rolling, if i < t the player can either stop the game and receive a prize equal to the value of the current roll, or discard the roll and try again next turn. If i = t, then the roll cannot be discarded and the prize must be accepted. Before the game begins, t is chosen by the player, who must then pay an up-front cost ct for some constant c. For c = 0, t can be chosen to be infinite (with an up-front cost of 0). Let R(d, c) be the expected profit (i.e. net gain) that the player receives from a single game of optimally-played Ramvok, given a fair d-sided die and cost constant c. For example, R(4, 0.2) = 2.65. Assume that the player has sufficient funds for paying any/all up-front costs.
$t$ representa o número máximo de turnos que o jogo dura. Se $t = 0$, então o jogo termina imediatamente. Caso contrário, em cada turno $i$, o jogador rola um dado. Depois de rolar, se $i < t$, o jogador pode parar o jogo e receber um prêmio igual ao valor da rolada de dados atual, ou descartar a rolada e tentar novamente no próximo turno. Se $i = t$, a rolada não pode ser descartada e o prêmio deve ser aceito. Antes de o jogo começar, $t$ é escolhido pelo jogador, que deve pagar um custo inicial $ct$ para algum $c$ constante. Para $c = 0$, $t$ pode ser escolhido como infinito (com um custo adiantado de 0). Considere $R(d, c)$ como o lucro esperado (ou seja, ganho líquido) que o jogador recebe de uma única partida de Ramvok jogado de maneira ideal, dado que o dado de $d$ lados é justo e com custo constante de $c$. Por exemplo, $R(4, 0,2) = 2,65$. Suponha que o jogador tem fundos suficientes para pagar todo e qualquer custo inicial.
Now consider a game of Super Ramvok:
Agora considere um jogo de Super Ramvok:
In Super Ramvok, the game of Ramvok is played repeatedly, but with a slight modification. After each game, the die is altered. The alteration process is as follows: The die is rolled once, and if the resulting face has its pips visible, then that face is altered to be blank instead. If the face is already blank, then it is changed back to its original value. After the alteration is made, another game of Ramvok can begin (and during such a game, at each turn, the die is rolled until a face with a value on it appears). The player knows which faces are blank and which are not at all times. The game of Super Ramvok ends once all faces of the die are blank.
No Super Ramvok, o jogo de Ramvok é jogado repetidamente, mas com uma pequena modificação. Após cada jogo, o dado é alterado. O processo de alteração é o seguinte: o dado é rolado uma vez, e se a face resultante tem seus pontos visíveis, então essa face é alterada para ficar em branco. Se a face já for branca, então ela é alterada de volta para seu valor original. Após a alteração ser feita, outro jogo de Ramvok pode começar (e durante esse jogo, a cada turno, o dado é rolado até que uma face com valor apareça). O jogador sabe quais faces estão em branco e quais não estão em todas as ocasiões. O jogo do Super Ramvok termina uma vez que todas as faces do dado estejam em branco.
Let S(d, c) be the expected profit that the player receives from an optimally-played game of Super Ramvok, given a fair d-sided die to start (with all sides visible), and cost constant c. For example, S(6, 1) = 208.3.
Considere $S(d, c)$ como o lucro esperado que o jogador recebe de um jogo ideal de Super Ramvok, levando em conta um dado de $d$ lados justo para começar (com todos os lados visíveis) e custo $c$ constante. Por exemplo, $S(6, 1) = 208,3$.
Let F(n) = ∑4≤d≤n ∑0≤c≤n S(d, c).
Considere $F(n) = \sum_{4 ≤ d ≤ n} \sum_{0 ≤ c ≤ n} S(d, c)$.
Calculate F(20), rounded to the nearest integer.
Calcule $F(20)$, arredondado para o número inteiro mais próximo.
# --hints--
`euler470()` should return 147668794.
`superRamvok()` deve retornar `147668794`.
```js
assert.strictEqual(euler470(), 147668794);
assert.strictEqual(superRamvok(), 147668794);
```
# --seed--
@@ -35,12 +35,12 @@ assert.strictEqual(euler470(), 147668794);
## --seed-contents--
```js
function euler470() {
function superRamvok() {
return true;
}
euler470();
superRamvok();
```
# --solutions--