bzoj 4992: [Usaco2017 Feb]Why Did the Cow Cross the Road SPFA

题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=4992


dis[i][j][k]表示在第i行第j列,已经走了k步(0<=k<3)

然后无脑跑个SPFA就好了

 

发表评论