![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BFS
yzj577
这个作者很懒,什么都没留下…
展开
-
zoj1649/hdu 1242(Rescue )
来源:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1649原创 2014-07-20 23:46:49 · 552 阅读 · 0 评论 -
coj1224(宽度优先搜索)
这道题目不算难吗,就是基本的bfs原创 2014-07-17 10:27:32 · 504 阅读 · 0 评论 -
coj1224(用数组储存队列)
之前没有学过队列,这两天了解了一下,C++标准库里有queue类,可以直接使用。但这里,我尝试着根据队列的原理,用数组储存队列,关键是用数组下表控制好进出队。原创 2014-07-17 10:33:22 · 531 阅读 · 0 评论 -
ZOJ 1709 Oil Deposits
#include #include #include #include using namespace std; int dx[8]={0,1,1,1,0,-1,-1,-1},dy[8]={1,1,0,-1,-1,-1,0,1}; int vis[100][100]; int m,n; char ch[100][100]; void sou(int x,int y) { int i,xn,原创 2014-07-31 15:11:51 · 407 阅读 · 0 评论