59 lines
936 B
Markdown
59 lines
936 B
Markdown
![]() |
---
|
||
|
id: 5
|
||
|
localeTitle: 5900f44b1000cf542c50ff5d
|
||
|
challengeType: 5
|
||
|
title: 'Problem 222: Sphere Packing'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id='description'>
|
||
|
¿Cuál es la longitud del tubo más corto, de radio interno de 50 mm, que puede contener completamente 21 bolas de radio de 30 mm, 31 mm, ..., 50 mm?
|
||
|
|
||
|
Da tu respuesta en micrómetros (10-6 m) redondeados al número entero más cercano.
|
||
|
</section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id='instructions'>
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: <code>euler222()</code> debe devolver 1590933.
|
||
|
testString: 'assert.strictEqual(euler222(), 1590933, "<code>euler222()</code> should return 1590933.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler222() {
|
||
|
// Good luck!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler222();
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|