摘要:
#include#include#include#includeusing namespace std;struct point{ int x,y,step;}p;string map[211];int used[211][211];int f[4][2] = {{1,0},{0,1}... 阅读全文
posted @ 2014-08-08 17:26
2014acm
阅读(75)
评论(0)
推荐(0)
摘要:
BFS#include #include #include #include #include #include using namespace std;struct node{ int x,y;};int dir[8][2]={-2,-1,-2,1,-1,-2,-1,2,1,-2,1,2,2... 阅读全文
posted @ 2014-08-08 11:26
2014acm
阅读(77)
评论(0)
推荐(0)
摘要:
#include #include using namespace std;const int N=20;int g[N][N],bz[N]={0},n,flag=0;void bfs(int x){ int t,i;queue q;q.push(x); bz[x]=1;while (!q.emp... 阅读全文
posted @ 2014-08-08 09:50
2014acm
阅读(110)
评论(0)
推荐(0)
浙公网安备 33010602011771号