摘要: #include #include #include using namespace std; //min()使用的时候要特别注意int maze[25][25],dir[4][2]={{0,1},{0,-1},{1,0},{-1,0}},ans,R,C;void DFS(int x,int y,int step){ if (step>10) return ; for (int i=0;i=0 && a=0 && b1) //紧挨着石头(flag=1)时,不能动; { maze[a][b]=0; DF... 阅读全文
posted @ 2013-12-08 16:15 单调的幸福 阅读(174) 评论(0) 推荐(0) 编辑