chore(i18n,curriculum): update translations (#44227)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f4d41000cf542c50ffe7
|
||||
title: 'Problem 360: Scary Sphere'
|
||||
title: 'Problema 360: Esfera assustadora'
|
||||
challengeType: 5
|
||||
forumTopicId: 302021
|
||||
dashedName: problem-360-scary-sphere
|
||||
@ -8,20 +8,24 @@ dashedName: problem-360-scary-sphere
|
||||
|
||||
# --description--
|
||||
|
||||
Given two points (x1,y1,z1) and (x2,y2,z2) in three dimensional space, the Manhattan distance between those points is defined as |x1-x2|+|y1-y2|+|z1-z2|.
|
||||
Dados dois pontos, ($x_1$, $y_1$, $z_1$) e ($x_2$, $y_2$, $z_2$), em um espaço tridimensional, a distância de Manhattan entre esses pontos está definida como $|x_1 - x_2| + |y_1 - y_2| + |z_1 - z_2|$.
|
||||
|
||||
Let C(r) be a sphere with radius r and center in the origin O(0,0,0). Let I(r) be the set of all points with integer coordinates on the surface of C(r). Let S(r) be the sum of the Manhattan distances of all elements of I(r) to the origin O.
|
||||
Considere $C(r)$ como uma esfera com o raio $r$ e o centro na origem $O(0, 0, 0)$.
|
||||
|
||||
E.g. S(45)=34518.
|
||||
Considere $I(r)$ como o conjunto de todos os pontos com coordenadas em números inteiros na superfície de $C(r)$.
|
||||
|
||||
Find S(1010).
|
||||
Considere $S(r)$ como a soma das distâncias de Manhattan de todos os elementos de $I(r)$ até a origem $O$.
|
||||
|
||||
Ex: $S(45)=34518$.
|
||||
|
||||
Encontre $S({10}^{10})$.
|
||||
|
||||
# --hints--
|
||||
|
||||
`euler360()` should return 878825614395267100.
|
||||
`scarySphere()` deve retornar `878825614395267100`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler360(), 878825614395267100);
|
||||
assert.strictEqual(scarySphere(), 878825614395267100);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@ -29,12 +33,12 @@ assert.strictEqual(euler360(), 878825614395267100);
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
function euler360() {
|
||||
function scarySphere() {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
euler360();
|
||||
scarySphere();
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
Reference in New Issue
Block a user