在 (行,列,是否已经用过炸弹) 三个状态上做 BFS:
求从 S 到 T 的最短步数;无法到达输出 -1。
O(n·m)。
By signing up a GDUFACM universal account, you can submit code in all online judging services provided by us.
使用您的 GDUFACM 通用账户