freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-388-distinct-lines....

55 lines
1.2 KiB
Markdown
Raw Normal View History

---
id: 5900f4f11000cf542c510002
challengeType: 5
title: 'Problem 388: Distinct Lines'
videoUrl: ''
localeTitle: 'Задача 388: Разные строки'
---
## Description
<section id="description"> Рассмотрим все точки решетки (a, b, c) с 0 ≤ a, b, c ≤ N. <p> Из начала координат O (0,0,0) все линии тянутся к другим точкам решетки. Пусть D (N) - число различных таких линий. </p><p> Вам дается, что D (1 000 000) = 831909254469114121. </p><p> Найдите D (1010). Дайте в качестве ответа первые девять цифр, за которыми следуют последние девять цифр. </p></section>
## Instructions
undefined
## Tests
<section id='tests'>
```yml
tests:
- text: ''
testString: 'assert.strictEqual(euler388(), 831907372805130000, "<code>euler388()</code> should return 831907372805130000.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler388() {
// Good luck!
return true;
}
euler388();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>