Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
This commit is contained in:
committed by
GitHub
parent
a07f84c8ec
commit
0bd52f8bd1
@ -1,47 +1,31 @@
|
||||
---
|
||||
id: 5900f4d41000cf542c50ffe7
|
||||
challengeType: 5
|
||||
title: 'Problem 360: Scary Sphere'
|
||||
challengeType: 5
|
||||
forumTopicId: 302021
|
||||
---
|
||||
|
||||
## Description
|
||||
<section id='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|.
|
||||
# --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.
|
||||
|
||||
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).
|
||||
</section>
|
||||
|
||||
## Instructions
|
||||
<section id='instructions'>
|
||||
# --hints--
|
||||
|
||||
</section>
|
||||
|
||||
## Tests
|
||||
<section id='tests'>
|
||||
|
||||
```yml
|
||||
tests:
|
||||
- text: <code>euler360()</code> should return 878825614395267100.
|
||||
testString: assert.strictEqual(euler360(), 878825614395267100);
|
||||
`euler360()` should return 878825614395267100.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler360(), 878825614395267100);
|
||||
```
|
||||
|
||||
</section>
|
||||
# --seed--
|
||||
|
||||
## Challenge Seed
|
||||
<section id='challengeSeed'>
|
||||
|
||||
<div id='js-seed'>
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
function euler360() {
|
||||
@ -52,17 +36,8 @@ function euler360() {
|
||||
euler360();
|
||||
```
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
## Solution
|
||||
<section id='solution'>
|
||||
# --solutions--
|
||||
|
||||
```js
|
||||
// solution required
|
||||
```
|
||||
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user