56 lines
1.5 KiB
Markdown
56 lines
1.5 KiB
Markdown
---
|
||
id: 5900f4511000cf542c50ff62
|
||
challengeType: 5
|
||
title: 'Problem 226: A Scoop of Blancmange'
|
||
videoUrl: ''
|
||
localeTitle: 'Проблема 226: Совок Бланманге'
|
||
---
|
||
|
||
## Description
|
||
<section id="description"> Кривая бланманга представляет собой множество точек (x, y) таких, что 0 ≤ x ≤ 1 и где s (x) = расстояние от x до ближайшего целого. <p> Площадь под кривой blancmange равна ½, показанной розовым на диаграмме ниже. </p><p> Пусть C - окружность с центром (¼, ½) и радиусом ¼, показанная черным на диаграмме. </p><p> Какая область под кривой blancmange включена в C? Дайте ваш ответ округленным до восьми знаков после запятой в форме 0.abcdefgh </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler226()</code> должен вернуть 0.11316017.
|
||
testString: 'assert.strictEqual(euler226(), 0.11316017, "<code>euler226()</code> should return 0.11316017.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler226() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler226();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|