摘要:
一道简单的搜索题,本题我用的是广搜写的,深搜当然也可以...#include <iostream>
#include <queue>
#include<string.h>
using namespace std;
int m,n;
char map[105][105];
int dir[][2]={{0,1},{0,-1},{1,0},{-1,0},{1,1},{1,-1},{-1,1},{-1,-1}};
struct st
{ int x,y; st(int m=0,int n=0) { x=m;y=n; }
};
void bfs(int x,int 阅读全文
posted @ 2011-07-27 19:40
ljfbest
阅读(90)
评论(0)
推荐(0)

浙公网安备 33010602011771号