#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. int move=0,s; vectorv; int i=i_start,j=j_start,k=i_end,l=j_end; if(i==k){ if(abs(l-j)==2){ if(jk){ i=i-2; if(i==k && (j-1)==l){ move++; v.push_back("UL"); s=v.size(); cout<> n; int i_start; int j_start; int i_end; int j_end; cin >> i_start >> j_start >> i_end >> j_end; printShortestPath(n, i_start, j_start, i_end, j_end); return 0; }