2011年4月12日

hdu 1072

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1072题目难点在于标记 状态vis[x][y][time] 表示在倒计时为time时走到了(x,y)处优先队列+BFS#include<iostream>#include<stdio.h>#include<queue>#include<cstring>using namespace std;int cas,n,m;int map[10][10],vis[10][10][7],dir[4][2]={1,0,-1,0,0,1,0,-1},ans;struct nod 阅读全文
posted @ 2011-04-12 23:47 4.5.6 阅读(790) 评论(0) 推荐(0) 编辑