摘要:
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 阅读全文