![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BFS
文章平均质量分 66
sicnu_zhr
这个作者很懒,什么都没留下…
展开
-
HDU1548
BFS #include #include #include #include using namespace std; int N, A, B; int a[205]; bool map[205], flag; struct node { int x, step; }n1, n2, m; int main()原创 2016-11-21 10:49:18 · 292 阅读 · 0 评论 -
HDU1372
马走日字,bfs求最小步数 #include #include #include using namespace std; int s1,s2,e1,e2; int tu[8][8]; int xx[8] = {1, 2, 1, 2, -1, -2, -1, -2};//x坐标变化 int yy[8] = {2, 1, -2, -1, 2, 1, -2, -1};//y坐标变化 int bf原创 2016-11-21 10:52:22 · 240 阅读 · 0 评论