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+矩阵优化)

相关文章:

你感兴趣的文章:

标签云: