2013年7月28日

广度优先搜索模板(poj2251)

摘要: 我的广度优先搜索的大致框架。。【代码】:#include #include #include #include using namespace std;typedef struct{ int x,y,z; int n;}Point;int dir[6][3]={-1,0,0,1,0,0,0,-1,0,0,1,0,0,0,-1,0,0,1};char map[31][31][31];int l,r,c,ans,flag[31][31][31];int Judge(int x,int y,int z){ if(x>=0 && x=0 && y=0 && 阅读全文

posted @ 2013-07-28 21:49 Gddxz 阅读(305) 评论(0) 推荐(0) 编辑

导航