#include #include #include using namespace std; void printShortestPath(int n, int i_start, int j_start, int i_end, int j_end) { // Print the distance along with the sequence of moves. vector v; if(abs(i_start-i_end)%2!=0){ cout<<"Impossible"<y){ v.push_back("R"); y=y+2; } else{ v.push_back("L"); y=y-2; } } else if(i_endy){ v.push_back("UR"); y=y+1; } else{ v.push_back("UL"); y=y-1; } x=x-2; } else{ if(j_end>=y){ v.push_back("LR"); y=y+1; } else{ v.push_back("LL"); y=y-1; } x=x+2; } } cout<> n; int i_start; int j_start; int i_end; int j_end; cin >> i_start >> j_start >> i_end >> j_end; //int *count; //*count=0; printShortestPath(n, i_start, j_start, i_end, j_end); return 0; }