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.2 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4b51000cf542c50ffc8 问题329Prime Frog 5 problem-329-prime-frog

--description--

苏珊有一只青蛙。她的青蛙跳过500个正方形编号为1到500.他只能以相同的概率跳到左边或右边的一个方格,并且他不能超出范围[1; 500]。(如果它落在任何一个结束时,它会在下一步移动时自动跳转到唯一可用的方格。)

当他在一个带有素数的正方形上时他在跳到下一个正方形之前以概率1/3以概率2/3或“N”不是PRIME弯曲'P'PRIME。当他在一个上面有一个不是素数的数字的正方形时他会在跳到下一个正方形之前以概率为1/3或'N'以概率2/3歪曲'P'。

鉴于青蛙的起始位置是随机的每个方格具有相同的概率并且考虑到她听到他的前15个呱呱声她听到PPPPNNPPPNPPNPN序列的概率是多少

以简化形式给出你的答案作为p / q的分数。

--hints--

euler329()应返回199740353/29386561536000。

assert.strictEqual(euler329(), 199740353 / 29386561536000);

--seed--

--seed-contents--

function euler329() {

  return true;
}

euler329();

--solutions--

// solution required