chore(i8n,learn): processed translations
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
15047f2d90
commit
e5c44a3ae5
@ -1,24 +1,28 @@
|
||||
---
|
||||
id: 5900f4b51000cf542c50ffc8
|
||||
title: 问题329:Prime Frog
|
||||
title: 'Problem 329: Prime Frog'
|
||||
challengeType: 5
|
||||
videoUrl: ''
|
||||
forumTopicId: 301986
|
||||
dashedName: problem-329-prime-frog
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
苏珊有一只青蛙。她的青蛙跳过500个正方形,编号为1到500.他只能以相同的概率跳到左边或右边的一个方格,并且他不能超出范围\[1; 500]。(如果它落在任何一个结束时,它会在下一步移动时自动跳转到唯一可用的方格。)
|
||||
Susan has a prime frog.
|
||||
|
||||
当他在一个带有素数的正方形上时,他在跳到下一个正方形之前以概率1/3以概率2/3或“N”(不是PRIME)弯曲'P'(PRIME)。当他在一个上面有一个不是素数的数字的正方形时,他会在跳到下一个正方形之前以概率为1/3或'N'以概率2/3歪曲'P'。
|
||||
Her frog is jumping around over 500 squares numbered 1 to 500.
|
||||
|
||||
鉴于青蛙的起始位置是随机的,每个方格具有相同的概率,并且考虑到她听到他的前15个呱呱声,她听到PPPPNNPPPNPPNPN序列的概率是多少?
|
||||
He can only jump one square to the left or to the right, with equal probability, and he cannot jump outside the range \[1;500].(if it lands at either end, it automatically jumps to the only available square on the next move.)
|
||||
|
||||
以简化形式给出你的答案作为p / q的分数。
|
||||
When he is on a square with a prime number on it, he croaks 'P' (PRIME) with probability 2/3 or 'N' (NOT PRIME) with probability 1/3 just before jumping to the next square. When he is on a square with a number on it that is not a prime he croaks 'P' with probability 1/3 or 'N' with probability 2/3 just before jumping to the next square.
|
||||
|
||||
Given that the frog's starting position is random with the same probability for every square, and given that she listens to his first 15 croaks, what is the probability that she hears the sequence PPPPNNPPPNPPNPN?
|
||||
|
||||
Give your answer as a fraction p/q in reduced form.
|
||||
|
||||
# --hints--
|
||||
|
||||
`euler329()`应返回199740353/29386561536000。
|
||||
`euler329()` should return 199740353 / 29386561536000.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler329(), 199740353 / 29386561536000);
|
||||
|
Reference in New Issue
Block a user