- 博客(2)
- 收藏
- 关注
原创 【简单搜索】POJ2251Dungeon Master
从起点跑到终点进行一遍BFS即可,算是很(ji)裸(chu)的BFS题目,练练手不错。 #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <queue> #define max 100 using namespace std; char map[max][max][max];
2017-01-25 17:18:21
183
原创 【简单搜索】POJ1321棋盘问题
#include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> using namespace std; char map[10][10]; int vis[10]; int m, n; int ans = 0; void dfs(int x, int num) { if (num == 0) {
2017-01-25 16:20:15
168
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅