home archives github knives links
tags oj 洛谷 bfs
categories
only title title and content
P1126

分析

使用3维数组(方向也要一个维度)来标记访问.访问的标记使用时间,但是时间会往小的方向更新

Debug

  1. 注意跨墙

  2. 边界不能走!

  3. 不存在两个格子卡住路径