1.5 KiB
1.5 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f4031000cf542c50ff16 | 5 | Problem 151: Paper sheets of standard sizes: an expected-value problem |
Description
在每个后续批次开始时,他随机从信封中取出一张纸。如果它的大小为A5,他会使用它。如果它更大,他会重复“切成两半”的程序,直到他有他需要的东西,任何剩余的床单总是放回信封里。排除本周的第一批和最后一批,找到工头在信封中找到一张纸的预期次数(每周)。使用格式x.xxxxxx将您的答案四舍五入到小数点后六位。
Instructions
undefined
Tests
tests:
- text: ''
testString: 'assert.strictEqual(euler151(), 0.464399, "<code>euler151()</code> should return 0.464399.");'
Challenge Seed
function euler151() {
// Good luck!
return true;
}
euler151();
Solution
// solution required