45 lines
825 B
Markdown
45 lines
825 B
Markdown
---
|
||
id: 5900f4511000cf542c50ff62
|
||
title: 问题226:Blancmange的一个独家新闻
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-226-a-scoop-of-blancmange
|
||
---
|
||
|
||
# --description--
|
||
|
||
blancmange曲线是点(x,y)的集合,使得0≤x≤1,并且其中s(x)=从x到最接近的整数的距离。
|
||
|
||
blancmange曲线下面积等于½,如下图所示为粉红色。
|
||
|
||
设C为中心(¼,½)和半径¼的圆,在图中以黑色显示。
|
||
|
||
blancmange曲线下面的哪个区域被C包围?将你的答案四舍五入到小数点后八位的形式为0.abcdefgh
|
||
|
||
# --hints--
|
||
|
||
`euler226()`应该返回0.11316017。
|
||
|
||
```js
|
||
assert.strictEqual(euler226(), 0.11316017);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler226() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler226();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|