摘要: dfs+bfs,由于bfs的时候忘了加vis判断是否已入队,而多次超内存。View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>#include <queue>using namespace std;#define maxn 45struct XPoint{ int x, y, d; XPoint(int xx, int yy, int dd) : x(xx), y(yy), d(dd) { } XPoint() { }} s 阅读全文
posted @ 2011-03-08 09:57 金海峰 阅读(509) 评论(0) 推荐(0) 编辑