freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-195-inscribed-circl...

56 lines
1.5 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: 5900f4311000cf542c50ff43
challengeType: 5
title: 'Problem 195: Inscribed circles of triangles with one angle of 60 degrees'
videoUrl: ''
localeTitle: 'Задача 195: Вписанные круги треугольников с одним углом 60 градусов'
---
## Description
<section id="description"> Назовем целочисленный односторонний треугольник с ровно одним углом 60 градусов на 60-градусный треугольник. Пусть r - радиус вписанной окружности такого 60-градусного треугольника. Существует 1234 60-градусных треугольников, для которых r ≤ 100. Пусть T (n) - число треугольников с 60 градусами, для которых r ≤ n, поэтому T (100) = 1234, T (1000) = 22767 и T 10000) = 359912. <p> Найдите T (1053779). </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler195()</code> должен вернуть 75085391.
testString: 'assert.strictEqual(euler195(), 75085391, "<code>euler195()</code> should return 75085391.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler195() {
// Good luck!
return true;
}
euler195();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>