Dungeon Master POJ - 2251 bfs模板题 注意输入的时候对应的变量以及要清空队列即可
#include#include#include#include#include#include#include#include#include#includeusingnamespacestd;structnode{intx,y,z;intstep;node(inta,intb,intc,intd){x=a;y=b;z=c;step=d;}};queueq;intdx[6]={1,-1,0,0,