feat: enable new langs (#42491)

Enable italian and portuguese
This commit is contained in:
Nicholas Carrigan (he/him)
2021-06-15 00:49:18 -07:00
committed by GitHub
parent d8d6d20793
commit f25e3e69f8
3301 changed files with 423168 additions and 6 deletions

View File

@ -0,0 +1,44 @@
---
id: 5900f4d41000cf542c50ffe7
title: 'Problem 360: Scary Sphere'
challengeType: 5
forumTopicId: 302021
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|.
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.
E.g. S(45)=34518.
Find S(1010).
# --hints--
`euler360()` should return 878825614395267100.
```js
assert.strictEqual(euler360(), 878825614395267100);
```
# --seed--
## --seed-contents--
```js
function euler360() {
return true;
}
euler360();
```
# --solutions--
```js
// solution required
```