62 lines
1.1 KiB
Markdown
62 lines
1.1 KiB
Markdown
![]() |
---
|
|||
|
id: 5
|
|||
|
localeTitle: 5900f43e1000cf542c50ff50
|
|||
|
challengeType: 5
|
|||
|
title: 'Problem 210: Obtuse Angled Triangles'
|
|||
|
---
|
|||
|
|
|||
|
## Description
|
|||
|
<section id='description'>
|
|||
|
Considere el conjunto S (r) de puntos (x, y) con coordenadas enteras que satisfacen | x | + | y | ≤ r.
|
|||
|
Sea O el punto (0,0) y C el punto (r / 4, r / 4).
|
|||
|
Sea N (r) el número de puntos B en S (r), de modo que el triángulo OBC tenga un ángulo obtuso, es decir, el ángulo mayor α satisface 90 ° <α <180 °.
|
|||
|
Entonces, por ejemplo, N (4) = 24 y N (8) = 100.
|
|||
|
|
|||
|
¿Qué es N (1,000,000,000)?
|
|||
|
</section>
|
|||
|
|
|||
|
## Instructions
|
|||
|
<section id='instructions'>
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Tests
|
|||
|
<section id='tests'>
|
|||
|
|
|||
|
```yml
|
|||
|
tests:
|
|||
|
- text: <code>euler210()</code> debe devolver 1598174770174689500.
|
|||
|
testString: 'assert.strictEqual(euler210(), 1598174770174689500, "<code>euler210()</code> should return 1598174770174689500.");'
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Challenge Seed
|
|||
|
<section id='challengeSeed'>
|
|||
|
|
|||
|
<div id='js-seed'>
|
|||
|
|
|||
|
```js
|
|||
|
function euler210() {
|
|||
|
// Good luck!
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
euler210();
|
|||
|
```
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Solution
|
|||
|
<section id='solution'>
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|
|||
|
</section>
|