2009年3月31日

hdu 1180 (bfs)

摘要: #include #include using namespace std; class Node { public : int x, y, time; }; Node first, next; int dir[4][2] = {{0,1},{0,-1},{1,0},{-1,0}}; int n, m, a, b; char map[21][21]; bool has... 阅读全文

posted @ 2009-03-31 22:33 ZAFU_VA 阅读(810) 评论(0) 推荐(1) 编辑

hdu 1242 优先队列+bfs

摘要: //第一次敲优先队列 #include #include #include using namespace std; class Node { public : int x, y, time; friend bool operator b.time; } }; priority_queue Q; Node first, next... 阅读全文

posted @ 2009-03-31 20:32 ZAFU_VA 阅读(928) 评论(0) 推荐(0) 编辑

导航