#include using namespace std; #ifdef DEB #define D if(1) #else #define D if(0) #endif #define fo(a,b) for(int a=0;a<(b);++a) using ll = long long; const int NMAX = 200; const int OUTSTLEN = 20; char in[NMAX][NMAX]; char out[NMAX*NMAX][OUTSTLEN]; int outLen; int n; vector> moves; void go(int i, int j) { in[i][j]=0; for(auto m:moves) { int I=i + m.first; int J=j + m.second; if(0<=I && I < n) if(0<=J && J0;) printf("%s\n", out[x]); } return 0; } }