* 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>
1.2 KiB
1.2 KiB
id, title, challengeType, videoUrl, dashedName
id | title | challengeType | videoUrl | dashedName |
---|---|---|---|---|
5900f4b51000cf542c50ffc8 | 问题329:Prime 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