POJ 3744 Scout YYF I(矩阵快速幂 概率dp)

YYF is a couragous scout. Now he is on a dangerous mission which is to penetrate into the enemy’s base. After overcoming a series difficulties, YYF is now at the start of enemy’s famous "mine road". This is a very long road, on which there are numbers of mines. At first, YYF is at step one. For each step after that, YYF will walk one step with a probability ofp, or jump two step with a probality of 1-p. Here is the task, given the place of each mine, please calculate the probality that YYF can go through the "mine road" safely.

,走过一个又一个陌生的城市,去感受旖旎的自然风光,

POJ 3744 Scout YYF I(矩阵快速幂 概率dp)

相关文章:

你感兴趣的文章:

标签云: