设为首页 加入收藏

TOP

ZOJ 3652Maze(二)
2015-11-21 00:55:18 来源: 作者: 【 】 浏览:3
Tags:ZOJ 3652Maze
de #include #include #include #include #include #include #include #include #include #define inf 1<<30 #define LL long long #define maxn 1<<24 using namespace std; int Map[55][55];//地图 int Mp[55][55];//怪兽所在点。。。有点懒了 bool vis[55][55][1<<6][11];//标记 int dir[4][2]= {0,1,0,-1,1,0,-1,0}; int n,m,l; int k; struct node { int x,y; int t;//移动力 int T;//回合数 int vis;//状态压缩 friend bool operator < (node a,node b) { return a.T>b.T; } bool cheak() { if(x>0&&x<=n&&y>0&&y<=m) return true ; return false ; } } st,e,ed; void bfs() { st.t=l; st.T=1; st.vis=0; priority_queue q; q.push(st); vis[st.x][st.y][st.vis][st.t]=true ; while(q.size()) { st=q.top(); q.pop(); //cout<

?

?

?

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇[LeetCode] Add Digits 下一篇HDU 1401 Solitaire

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: