#include #include #include #include #include #include using namespace std; #define pp pair #define ppp pair int n; bool fr[26][26]; bool check(int u, int v) { if ((u<0)||(v<0)||(u>=n) || (v>=n) || (!fr[u][v])) return false; return true; } int KNight(int u, int v) { queue e; for (int i = 0; i>n; int f[26][26]; for (int i = 1; i