#include using namespace std; void printShortestPath(int n,int i,int j,int l,int r); int main(){ int n; cin>>n; int x1,y1,x2,y2; cin>>x1>>y1>>x2>>y2; printShortestPath(n,x1,y1,x2,y2); } void printShortestPath(int n,int x1,int y1,int x2,int y2){ int a[n][n]; vectorv1; for(int i=0;i0){ if(y1>=y2){ // cout<<"UL"<<" "; v1.push_back("UL"); y1-=1; } else{ // cout<<"UR"<<" "; v1.push_back("UR"); y1+=1; } x1=x1-2; } else if(x1-x2<0){ if(y1>y2){ v1.push_back("LL"); y1-=1; } else{ v1.push_back("LR"); y1+=1; } x1+=2; } else{ if(y1>y2){ v1.push_back("L"); y1-=2; } else if(y1