摘要:
#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... 阅读全文