Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-469-empty-chairs.chinese.md

56 lines
1.2 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: 5900f5411000cf542c510053
challengeType: 5
title: 'Problem 469: Empty chairs'
videoUrl: ''
localeTitle: 问题469空椅子
---
## Description
<section id="description">在一个房间里N个椅子摆放在圆桌旁。骑士一个接一个地进入房间随意选择一把可用的空椅子。为了拥有足够的肘部空间骑士总是在彼此之间留下至少一把空座椅。 <p>当没有任何合适的椅子时确定空椅子的分数C.我们还将EN定义为C的期望值。我们可以验证E4= 1/2和E6= 5/9。 </p><p>找到E1018。将答案四舍五入到小数点后十四位形式为0.abcdefghijklmn。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler469()</code>应该返回0.56766764161831。
testString: 'assert.strictEqual(euler469(), 0.56766764161831, "<code>euler469()</code> should return 0.56766764161831.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler469() {
// Good luck!
return true;
}
euler469();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>