25号搜索的一些例子,。。Oil Deposits&&Red and Black&&Knight Moves&&Catch That Cow&&Tempter of the Bone
摘要:
Oil Depositshttp://poj.org/problem?id=1562一个简单又基础的搜索题目: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 char a[105][105]; 7 int s=0,i,j,x,y;“有多个函数,应把变量定义在外面”深搜 8 void dfs(int i,int j) 9 {10 if(ix||jy||a[i][j]!='@')11 return ;//直接跳出来.12 ... 阅读全文