56 lines
1.8 KiB
Markdown
56 lines
1.8 KiB
Markdown
---
|
||
id: 5900f4241000cf542c50ff37
|
||
challengeType: 5
|
||
title: 'Problem 184: Triangles containing the origin'
|
||
videoUrl: ''
|
||
localeTitle: 'Задача 184: Треугольники, содержащие начало координат'
|
||
---
|
||
|
||
## Description
|
||
<section id="description"> Рассмотрим множество Ir точек (x, y) с целыми координатами внутри круга с радиусом r, центрированным в начале координат, т. Е. X2 + y2 <r2. Для радиуса 2 I2 содержит девять точек (0,0), (1,0), (1,1), (0,1), (-1,1), (-1,0), ( -1, -1), (0, -1) и (1, -1). Есть восемь треугольников, имеющих все три вершины в I2, которые содержат начало координат внутри. Два из них показаны ниже, другие получены из них вращением. <p> Для радиуса 3 есть 360 треугольников, содержащих начало координат внутри и имеющих все вершины в I3, а для I5 - 10600. </p><p> Сколько треугольников содержит начало координат внутри и имеет все три вершины в I105? </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler184()</code> должен вернуть 1725323624056.
|
||
testString: 'assert.strictEqual(euler184(), 1725323624056, "<code>euler184()</code> should return 1725323624056.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler184() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler184();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|