Escape from Markov

Problem Name:
Escape from Markov
Site:CodeForces
Links:
Tags: