摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1312 1 //DFS 2 #include<iostream> 3 int count,m,n; 4 int dir[4][2]={-1,0,1,0,0,-1,0,1}; 5 char map[21][21]; 6 void DFS(int i,int j) 7 { 8 if(i<=0||i>m||j<=0||j>n) 9 return;10 for(int k=0;k<4;++k)11 if(i+dir[k][0]>0&&i+dir 阅读全文
posted @ 2012-06-21 17:14
可笑痴狂
阅读(249)
评论(0)
推荐(0)
浙公网安备 33010602011771号