![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
搜索:bfs
会划水才能到达彼岸
ACM-ICPC 现役(铜牌) 目前:Codeforces Rating: 2172
展开
-
week1 kuangbin题单 简单搜索 (连载ing)
kuangbin 简单搜索1.kuangbin 简单搜索 - POJ 1321 棋盘问题(dfs模板题)2.kuangbin 简单搜索 - POJ - 2251 Dungeon Master (三维bfs)3.kuangbin 简单搜索 - POJ - 3278 Catch That Cow (简单bfs)4.kuangbin 简单搜索 - POJ - 3279 Fliptile (待更新)5.kuangbin 简单搜索 - POJ - 1426 Find The Multiple (简单dfs)原创 2020-09-28 02:09:31 · 146 阅读 · 0 评论 -
kuangbin 简单搜索 - POJ - 3278 Catch That Cow (简单bfs)
3.kuangbin 简单搜索 - POJ - 3278 Catch That Cow (简单bfs)简单bfs#include<cstdio>#include<iostream>#include<cstring>#include<string>#include<cmath>#include<algorithm>#include<queue>#define IOS ios::sync_with_std原创 2020-09-28 02:08:37 · 134 阅读 · 0 评论 -
kuangbin 简单搜索 - POJ - 2251 Dungeon Master (三维迷宫问题 bfs)
POJ - 2251 Dungeon Master (三维迷宫问题 bfs)看到三维bfs,当然少不了二维的bfs,先来看看二维bfs的迷宫问题怎么解决。kuangbin 简单搜索 - 迷宫问题 POJ - 3984 (二维迷宫问题 bfs)详情看代码!!!逻辑有点绕,实际上跟二维是差不多的,如果不理解的话可以看看二维的。#include<cstdio>#include<iostream>#include<cstring>#include<stri原创 2020-09-28 02:05:28 · 155 阅读 · 0 评论 -
kuangbin 简单搜索 - POJ - 3414 Pots (bfs)
kuangbin 简单搜索 - POJ - 3414 Pots (bfs)#include<cstdio>#include<iostream>#include<cstring>#include<string>#include<cmath>#include<algorithm>#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)#define原创 2020-09-28 01:52:50 · 118 阅读 · 0 评论 -
kuangbin 简单搜索 - 迷宫问题 POJ - 3984 (二维迷宫问题 bfs)
迷宫问题 POJ - 3984 (二维迷宫问题 bfs)这道题有两种做法。第一种直接用STL的queue做,但是我做的是用数组模拟队列,试一下新方法。#include<iostream>#include<cstdio>#include<cstring>#include<string>#include<queue>#include<algorithm>using namespace std;typedef pair&l原创 2020-09-27 21:37:48 · 132 阅读 · 0 评论