freeCodeCamp/curriculum/challenges/portuguese/08-coding-interview-prep/project-euler/problem-410-circle-and-tang...

56 lines
1.2 KiB
Markdown
Raw Normal View History

---
id: 5900f5071000cf542c510018
challengeType: 5
title: 'Problem 410: Circle and tangent line'
videoUrl: ''
localeTitle: 'Problema 410: Linha Circular e Tangente'
---
## Description
<section id="description"> Seja C o círculo com raio r, x2 + y2 = r2. Escolhemos dois pontos P (a, b) e Q (-a, c) para que a linha passando por P e Q seja tangente a C. <p> Por exemplo, o quadrigêmeo (r, a, b, c) = (2, 6, 2, -7) satisfaz essa propriedade. </p><p> Seja F (R, X) o número dos quadrigêmeos inteiros (r, a, b, c) com essa propriedade e com 0 &lt;r ≤ R e 0 &lt;a ≤ X. </p><p> Podemos verificar que F (1, 5) = 10, F (2, 10) = 52 e F (10, 100) = 3384. Encontre F (108, 109) + F (109, 108). </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler410()</code> deve retornar 799999783589946600.
testString: 'assert.strictEqual(euler410(), 799999783589946600, "<code>euler410()</code> should return 799999783589946600.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler410() {
// Good luck!
return true;
}
euler410();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>