freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-226-a-scoop-of-blan...

45 lines
825 B
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: 5900f4511000cf542c50ff62
title: 问题226Blancmange的一个独家新闻
challengeType: 5
videoUrl: ''
dashedName: problem-226-a-scoop-of-blancmange
---
# --description--
blancmange曲线是点xy的集合使得0≤x≤1并且其中sx=从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
```