BZOJ 1340. [Baltic2007]Escape 逃跑问题

某岛 at 
http://www.lydsy.com/JudgeOnline/problem.php?id=1340……