Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-247-squares-under-a-hyperbola.russian.md

56 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4641000cf542c50ff76
challengeType: 5
title: 'Problem 247: Squares under a hyperbola'
videoUrl: ''
localeTitle: 'Задача 247: Квадраты под гиперболой'
---
## Description
<section id="description"> Рассмотрим область, ограниченную 1 ≤ x и 0 ≤ y ≤ 1 / x. <p> Пусть S1 - наибольший квадрат, который может подходить под кривой. Пусть S2 - наибольший квадрат, который вписывается в оставшуюся область и т. Д. Пусть индекс Sn - пара (слева внизу), указывающая число квадратов слева от Sn и число квадратов ниже Sn. </p><p> На диаграмме показаны некоторые квадраты, помеченные номером. S2 имеет один квадрат слева и ни один ниже, поэтому индекс S2 равен (1,0). Можно видеть, что индекс S32 равен (1,1), как и индекс S50. 50 - наибольшее n, для которого индекс Sn равен (1,1). </p><p> Что такое наибольшее n, для которого индекс Sn равен (3,3)? </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler247()</code> должен вернуть 782252.
testString: 'assert.strictEqual(euler247(), 782252, "<code>euler247()</code> should return 782252.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler247() {
// Good luck!
return true;
}
euler247();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>