56 lines
1.6 KiB
Markdown
56 lines
1.6 KiB
Markdown
---
|
||
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>
|