freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-246-tangents-to-an-...

56 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4621000cf542c50ff75
challengeType: 5
title: 'Problem 246: Tangents to an ellipse'
videoUrl: ''
localeTitle: 'Задача 246: Касания к эллипсу'
---
## Description
<section id="description"> Определение для эллипса: Пусть окружность c с центром M и радиусом r и точка G такие, что d (G, M) <p> Ниже показано построение точек эллипса. </p><p> При этом указаны точки M (-2000,1500) и G (8000,1500). Дано также окружность c с центром M и радиусом 15000. Локус точек, которые эквидистантны из G и c, образуют эллипс e. Из точки P вне e рисуются два касательных t1 и t2 к эллипсу. Пусть точки, где t1 и t2 касаются эллипса, равны R и S. </p><p> На сколько точек решетки P угол RPS больше 45 градусов? </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler246()</code> должен вернуть 810834388.
testString: 'assert.strictEqual(euler246(), 810834388, "<code>euler246()</code> should return 810834388.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler246() {
// Good luck!
return true;
}
euler246();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>