HDU 1026 Ignatius and the Princess I(优先队列+BFS+打印路径)
#include
#include
#include
#include
usingnamespacestd;
constintmaxm=150;
intdir[4][2]={{1,0},{-1,0},{0,1},{0,-1}};
chars[maxm][maxm];
intmap[maxm][maxm];
intvis[maxm][maxm];
intlist[maxm][maxm];
intm,