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

1.6 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f52a1000cf542c51003b 问题444圆桌会议彩票 5 problem-444-the-roundtable-lottery

--description--

一群人决定坐在圆桌旁玩彩票交易游戏。每个人都是从随机分配的未经批准的彩票开始的。每张票都被划伤显示全票奖金从1英镑到1英镑不等没有两张票。游戏的目标是让每个人在离开游戏时最大化他的奖金。

选择任意人作为第一个玩家。围绕桌子,每个玩家只有两个选项之一:

  1. 玩家可以抓住他的票,并向桌上的每个人透露其价值。
  2. 玩家可以将他未击中的门票换成先前玩家划伤的门票,然后将该门票留给游戏。之前的玩家随后抓住了他新买的机票,并向桌上的每个人展示了它的价值。

所有门票都被划伤后游戏结束。仍然留在桌上的所有玩家必须带着他们当前持有的门票。

假设每个玩家使用最优策略来最大化他的票奖金的期望值。

设Ep表示当游戏在由p个玩家组成的游戏中结束时留在桌旁的玩家的预期数量例如当舍入到5个有效数字时E111= 5.2912)。

设S1N= Ep令SkN= Sk-1p其中k> 1

找到S201014并用科学记数法将答案写成10位有效数字。使用小写e来分隔尾数和指数例如S3100= 5.983679014e5)。

--hints--

euler444()应该返回1.200856722e+263。

assert.strictEqual(euler444(), 1.200856722e263);

--seed--

--seed-contents--

function euler444() {

  return true;
}

euler444();

--solutions--

// solution required