#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. // cout<i_end) { for (int i = 0; i < y2; ++i) { cout<<"R "; } } else { for (int i = 0; i < y2; ++i) { cout<<"L "; } } cout<i_start) { y1 = (j_end - i_end); if(2*y1>=x1) { cout<=x1) { cout<=x1) { cout<=x1) { cout<> n; int i_start; int j_start; int i_end; int j_end; cin >> i_start >> i_end >> j_start >> j_end; printShortestPath(n,i_start,j_start,i_end,j_end); return 0; }