摘要: #include #include #include using namespace std; //用queue一定要用std;int dir1[4][2]={{0,1},{1,0},{0,-1},{-1,0}},vis[50][50];//右,下,左,上;int dir2[4][2]={{0,1},{-1,0},{0,-1},{1,0}},r0,c0,rn,cn,row,col;char maze[50][100];structpath{ int rr,cc,step;};int DFS (int r0,int c0,int to,int dir[][2]){ if (r0=... 阅读全文
posted @ 2013-11-18 19:14 单调的幸福 阅读(143) 评论(0) 推荐(0) 编辑