摘要: 好纠结啊,方向转晕了~~~~~先贴个半山寨的代码#include <cstdio>#include<string.h>#define MAX 45 struct node{ int x,y;}stack[2000]; int flag[MAX][MAX];char map[MAX][MAX];int dirl[4][2]={{-1,0},{0,1},{1,0},{0,-1}}; // Left firstint dirr[4][2]={{1,0},{0,1},{-1,0},{0,-1}}; //Right firstint w,h, d1,d2;int start[2] 阅读全文
posted @ 2012-03-18 13:00 skyming 阅读(198) 评论(0) 推荐(0) 编辑