
BFS
yzj577
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
zoj1649/hdu 1242(Rescue )
来源:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1649原创 2014-07-20 23:46:49 · 613 阅读 · 0 评论 -
coj1224(宽度优先搜索)
这道题目不算难吗,就是基本的bfs原创 2014-07-17 10:27:32 · 566 阅读 · 0 评论 -
coj1224(用数组储存队列)
之前没有学过队列,这两天了解了一下,C++标准库里有queue类,可以直接使用。但这里,我尝试着根据队列的原理,用数组储存队列,关键是用数组下表控制好进出队。原创 2014-07-17 10:33:22 · 572 阅读 · 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 · 448 阅读 · 0 评论