
搜索
ahfywff
这个作者很懒,什么都没留下…
展开
-
HDU 4198 Quick out of the Harbour (优先队列BFS)
BFS时使用优先级队列#include #include #include #include using namespace std; const int maxn = 505; int cas, h, w, d; int sx, sy, tx, ty; char map[maxn][maxn]; int dir[4][2] = {{0, 1}, {0, -1}, {1, 0}, {-原创 2012-04-03 23:14:50 · 899 阅读 · 2 评论 -
HDU 4230 Robot Navigation (记忆化广度优先搜索)
这题WA了十多次。昨晚调试了一晚上,今天下午又调试了好久还是AC不能,于是决定重敲。重敲之后一次AC,然后又进行了一些优化,109ms。 Run ID Submit Time Judge Status Pro.ID Exe.Time Exe.Memory Code Len. Language Author 5862652 2012-04-28原创 2012-04-28 15:56:44 · 946 阅读 · 0 评论