#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];
int dir[4][2]={{1,0},{-1,0},{0,1},{0,-1}};
struct node
{
int x,y,j,k,t;
};
void init()
{
int i,r;
for(i=1;i<=m;i++)
for(r=1;r<=n;r++)
if( map[i][r]==5 ) map[i][r]=0;
}
bool check(int x, int y)
{
if( x>=1 && x<=m && y>=1 && y<=n )
return 1;
return 0;......
阅读全文