chore(learn): Applied MDX format to Chinese curriculum files (#40462)
This commit is contained in:
@ -1,55 +1,25 @@
|
||||
---
|
||||
id: 5900f5411000cf542c510053
|
||||
title: 问题469:空椅子
|
||||
challengeType: 5
|
||||
videoUrl: ''
|
||||
title: 问题469:空椅子
|
||||
---
|
||||
|
||||
## Description
|
||||
<section id="description">在一个房间里,N个椅子摆放在圆桌旁。骑士一个接一个地进入房间,随意选择一把可用的空椅子。为了拥有足够的肘部空间,骑士总是在彼此之间留下至少一把空座椅。 <p>当没有任何合适的椅子时,确定空椅子的分数C.我们还将E(N)定义为C的期望值。我们可以验证E(4)= 1/2和E(6)= 5/9。 </p><p>找到E(1018)。将答案四舍五入到小数点后十四位,形式为0.abcdefghijklmn。 </p></section>
|
||||
# --description--
|
||||
|
||||
## Instructions
|
||||
<section id="instructions">
|
||||
</section>
|
||||
在一个房间里,N个椅子摆放在圆桌旁。骑士一个接一个地进入房间,随意选择一把可用的空椅子。为了拥有足够的肘部空间,骑士总是在彼此之间留下至少一把空座椅。
|
||||
|
||||
## Tests
|
||||
<section id='tests'>
|
||||
当没有任何合适的椅子时,确定空椅子的分数C.我们还将E(N)定义为C的期望值。我们可以验证E(4)= 1/2和E(6)= 5/9。
|
||||
|
||||
```yml
|
||||
tests:
|
||||
- text: <code>euler469()</code>应该返回0.56766764161831。
|
||||
testString: assert.strictEqual(euler469(), 0.56766764161831);
|
||||
找到E(1018)。将答案四舍五入到小数点后十四位,形式为0.abcdefghijklmn。
|
||||
|
||||
```
|
||||
# --hints--
|
||||
|
||||
</section>
|
||||
|
||||
## Challenge Seed
|
||||
<section id='challengeSeed'>
|
||||
|
||||
<div id='js-seed'>
|
||||
`euler469()`应该返回0.56766764161831。
|
||||
|
||||
```js
|
||||
function euler469() {
|
||||
// Good luck!
|
||||
return true;
|
||||
}
|
||||
|
||||
euler469();
|
||||
|
||||
assert.strictEqual(euler469(), 0.56766764161831);
|
||||
```
|
||||
|
||||
</div>
|
||||
# --solutions--
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
## Solution
|
||||
<section id='solution'>
|
||||
|
||||
```js
|
||||
// solution required
|
||||
```
|
||||
|
||||
/section>
|
||||
|
Reference in New Issue
Block a user