// 这道题还没过,不知道哪里错了,希望有人帮我Debug
#include <cstdio>
#include <queue>
#include <cstring>
using namespace std;
int n,m,x1,y1,x2,y2,x3,y3;
int vist[8][8][8][8],map[8][8];
struct node
{
int x,y,j,k,t;
};
bool check(int x, int y)
{
if( x>=1 && x<=m && y>=1 && y<=n )
return 1;
return 0;
}
int bfs()
{
queue<node> v;
node a,b;
int i;
a.x=x3,a.y=y3,a.j=x1,a.k=y1,a.t=0;
v.push(a);
......
阅读全文