Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-267-billionaire.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

39 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: 5900f4771000cf542c50ff8a
title: 问题267亿万富翁
challengeType: 5
videoUrl: ''
dashedName: problem-267-billionaire
---
# --description--
您将获得独特的投资机会。从1英镑的资本开始你可以选择固定比例f来投注一个公平的硬币投掷1000次投掷。你的回报是对你的投注加倍你失去了对尾巴的赌注。例如如果f = 1/4对于第一次投掷你下注0.25英镑如果头部出现你赢得0.5英镑那么就有1.5英镑。然后你下注0.375英镑如果第二次折腾是尾巴你有1.125英镑。选择f以最大限度地提高在1,000次翻转后获得至少1,000,000,000英镑的机会您成为亿万富翁的机会是多少假设所有计算都是精确的没有舍入但是将答案四舍五入到小数点后面的12位数形式为0.abcdefghijkl。
# --hints--
`euler267()`应返回0.999992836187。
```js
assert.strictEqual(euler267(), 0.999992836187);
```
# --seed--
## --seed-contents--
```js
function euler267() {
return true;
}
euler267();
```
# --solutions--
```js
// solution required
```