Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-253-tidying-up.md
Oliver Eyton-Williams ee1e8abd87 feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

53 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4691000cf542c50ff7c
title: 问题253整理
challengeType: 5
videoUrl: ''
dashedName: problem-253-tidying-up
---
# --description--
一个小孩子有一个“数字毛毛虫”由四十个拼图块组成每个拼图上有一个数字当它们连成一条线时按顺序显示数字1到40。
每天晚上,孩子的父亲必须拿起散落在游戏室的毛毛虫的碎片。他随机拿起碎片并按正确顺序放置。当毛虫以这种方式建立时,它形成了逐渐融合在一起的不同部分。段的数量从零开始(没有放置件),通常增加到大约十一或十二,然后在完成单个段(放置所有件)之前往往再次下降。
例如:
片段放置所以Far121422936434554354 ......
设M是毛虫随机整理过程中遇到的最大段数。对于十件毛毛虫来说每个M的可能性是多少
M Possibilities1512 2250912 31815264 41418112 5144000
所以M的最可能值是3平均值是385643/113400 = 3.400732,四舍五入到小数点后六位。
对于四十件毛毛虫而言M最可能的价值是11;但是M的平均值是多少将您的答案四舍五入到小数点后六位。
# --hints--
`euler253()`应返回11.492847。
```js
assert.strictEqual(euler253(), 11.492847);
```
# --seed--
## --seed-contents--
```js
function euler253() {
return true;
}
euler253();
```
# --solutions--
```js
// solution required
```