#include #include #include using namespace std; int dc[]={-1,1,2,1,-1,-2}; int dr[]={-2,-2,0,2,2,0}; char m[][3]={"UL","UR","R","LR","LL","L"}; struct point { int x;int y; }; int isvalid(int x,int y,int n) { if(x>=0&&x=0&&yq; // std::std::vector path; for(i=0;i