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

49 lines
1.1 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: 5900f51a1000cf542c51002d
title: 问题430范围翻转
challengeType: 5
videoUrl: ''
dashedName: problem-430-range-flips
---
# --description--
N个磁盘连续放置从左到右从1到N索引。
每个磁盘都有黑色和白色的一面。 最初,所有磁盘都显示白色的一面。
在每一回合随机地均匀地选择介于1和N之间的两个整数A和B不一定是不同的。 索引从A到B包括B的所有磁盘均被翻转。
以下示例显示了N = 8的情况。在第一圈A = 5且B = 2在第二圈A = 4且B = 6。
令ENM为M圈后显示白色面的预期磁盘数量。 我们可以验证E31= 10/9E32= 5/3E104≈5,157和E10010≈51,893。
找出E10104000。 将答案四舍五入到小数点后两位。
# --hints--
`euler430()`应该返回5000624921.38。
```js
assert.strictEqual(euler430(), 5000624921.38);
```
# --seed--
## --seed-contents--
```js
function euler430() {
return true;
}
euler430();
```
# --solutions--
```js
// solution required
```