#include using namespace std; void printShortestPath(int n, int is, int js, int ie, int je) { vectors; int c=0,flag=0; while(is>=0&&js>=0&&isis&&je>js){ if(is+2==ie&&js+1js){ c++;s.push_back("UR"); is=is-2; js=js+1; } else if(ie>is&&jejs){ int x=je-js; if(x%2==0){ c++;s.push_back("R"); js=js+2; } else{ break; } } else if(ie==is&&jeis&&x%4==0){ while(t1>0){ c++;s.push_back("LR"); is=is+2; js=js+1; t1--; } while(t2>0){ c++;s.push_back("LL"); is=is+2; js=js-1; t2--; } } else if(ie0){ c++;s.push_back("UL"); is=is-2; js=js-1; t1--; } while(t2>0){ c++;s.push_back("UR"); is=is-2; js=js+1; t2--; } } else{ break; } } } if(flag==1){ 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; }