//Bismillahir Rahmanir Rahim #include using namespace std; #define MAX 200 #define MEMSET(x,y) memset(x, y, sizeof(x)) #define PB push_back #define MP make_pair #define NO_OF_MOVES 6 int color[MAX+9][MAX+9], dis[MAX+9][MAX+9]; pair par[MAX+9][MAX+9]; queue >Q; vectorANS; int dx[] = {-2,-2,0,2,2,0}; int dy[] = {-1,1,2,1,-1,-2}; string MOVES[] = {"UL", "UR", "R", "LR", "LL", "L"}; string GET_MOVE(pair E, pair S) { for(int i;i=n || y<0 || yy>=m) continue; if(color[xx][yy]) continue; Q.push(make_pair(xx,yy)); dis[xx][yy] = dis[x][y] + 1; color[xx][yy] = 1; par[xx][yy] = make_pair(x,y); } } } int main() { int i,j,k,l,m,n,ans,tot,sum,temp,test,siz,lst,sx,sy,ex,ey; pair parent; cin>>n; cin>>sx>>sy>>ex>>ey; Bfs_2D(sx, sy, n, n); if(color[ex][ey]) { cout<=0;i--) cout<