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: 5900f53a1000cf542c51004c
title: 'Problem 461: Almost Pi'
title: 'Problema 461: Quase pi'
challengeType: 5
forumTopicId: 302136
dashedName: problem-461-almost-pi
@ -8,43 +8,43 @@ dashedName: problem-461-almost-pi
# --description--
Let `f(k, n)` = $e^\frac{k}{n} - 1$, for all non-negative integers `k`.
Considere `f(k, n)` = $e^\frac{k}{n} - 1$, para todos os números inteiros não negativos `k`.
Remarkably, `f(6, 200) + f(75, 200) + f(89, 200) + f(226, 200)` = 3.1415926… ≈ π.
Notadamente, `f(6, 200) + f(75, 200) + f(89, 200) + f(226, 200)` = 3.1415926… ≈ π.
In fact, it is the best approximation of π of the form `f(a, 200) + f(b, 200) + f(c, 200) + f(d, 200)`.
De fato, essa é a melhor aproximação de π da forma `f(a, 200) + f(b, 200) + f(c, 200) + f(d, 200)`.
Let `almostPi(n)` = a<sup>2</sup> + b<sup>2</sup> + c<sup>2</sup> + d<sup>2</sup> for a, b, c, d that minimize the error: $\lvert f(a,n) + f(b,n) + f(c,n) + f(d,n) - \Pi\rvert$
Considere `almostPi(n)` = a<sup>2</sup> + b<sup>2</sup> + c<sup>2</sup> + d<sup>2</sup> para a, b, c, d que minimiza o erro: $\lvert f(a,n) + f(b,n) + f(c,n) + f(d,n) - \Pi\rvert$
You are given `almostPi(200)` = 6<sup>2</sup> + 75<sup>2</sup> + 89<sup>2</sup> + 226<sup>2</sup> = 64658.
Você é informado de que `almostPi(200)` = 6<sup>2</sup> + 75<sup>2</sup> + 89<sup>2</sup> + 226<sup>2</sup> = 64658.
# --hints--
`almostPi` should be a function.
`almostPi` deve ser uma função.
```js
assert(typeof almostPi === 'function')
```
`almostPi` should return a number.
`almostPi` deve retornar um número.
```js
assert.strictEqual(typeof almostPi(10), 'number');
```
`almostPi(29)` should return `1208`.
`almostPi(29)` deve retornar `1208`.
```js
assert.strictEqual(almostPi(29), 1208);
```
`almostPi(50)` should return `4152`.
`almostPi(50)` deve retornar `4152`.
```js
assert.strictEqual(almostPi(50), 4152);
```
`almostPi(200)` should return `64658`.
`almostPi(200)` deve retornar `64658`.
```js
assert.strictEqual(almostPi(200), 64658);