hdu rescue dfs(or优先队列bfs)
#include<iostream>#include<string.h>const int INF = 0x3f3f3f3f;using namespace std;char map[1010][1010];int vis[1010][1010];int sx, sy,ans=INF;int dir[4][2] = { 0, 1, 0, -1, 1, 0, -1, 0 };int n, m;void dfs(int x, int y, in