chore(i8n,learn): processed translations
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
15047f2d90
commit
e5c44a3ae5
@ -1,18 +1,28 @@
|
||||
---
|
||||
id: 5900f4771000cf542c50ff8a
|
||||
title: 问题267:亿万富翁
|
||||
title: 'Problem 267: Billionaire'
|
||||
challengeType: 5
|
||||
videoUrl: ''
|
||||
forumTopicId: 301916
|
||||
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。
|
||||
You are given a unique investment opportunity.
|
||||
|
||||
Starting with £1 of capital, you can choose a fixed proportion, f, of your capital to bet on a fair coin toss repeatedly for 1000 tosses.
|
||||
|
||||
Your return is double your bet for heads and you lose your bet for tails.
|
||||
|
||||
For example, if f = 1/4, for the first toss you bet £0.25, and if heads comes up you win £0.5 and so then have £1.5. You then bet £0.375 and if the second toss is tails, you have £1.125.
|
||||
|
||||
Choosing f to maximize your chances of having at least £1,000,000,000 after 1,000 flips, what is the chance that you become a billionaire?
|
||||
|
||||
All computations are assumed to be exact (no rounding), but give your answer rounded to 12 digits behind the decimal point in the form 0.abcdefghijkl.
|
||||
|
||||
# --hints--
|
||||
|
||||
`euler267()`应返回0.999992836187。
|
||||
`euler267()` should return 0.999992836187.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler267(), 0.999992836187);
|
||||
|
Reference in New Issue
Block a user