随笔分类 -  搜索

摘要:这题跟北大1915题很像,怀疑是从北大抄过来的……#include <cstdio>#include <cstring>#include <queue>using namespace std;#define MAXL 20typedef struct { int x; int y; int step;} MyPoint;MyPoint start;int endx, endy, L = 8;bool visited[MAXL][MAXL];int move[8][2] = { { 2, 1 }, { 2, -1 }, { -2, 1 }, { -2, -1 阅读全文
posted @ 2011-07-23 20:12 moonbay 阅读(223) 评论(0) 推荐(0)