poj2386,广搜,深搜

poj2386是一道很是适合练习搜索的题目,下面广搜和深搜的代码以下: 广搜:ios #include <iostream> #include <queue> #include <string.h> using namespace std; int xx[8][2] = {{0,1},{0,-1},{-1,0},{1,0},{1,1},{1,-1},{-1,-1},{-1,1}}; char s[
相关文章
相关标签/搜索