// NOTE: it is recommended to use this even if you don't understand the following code. #include #include #include #include #define MAXQ 200000 #define MAXS 128 int M, N, Q, X0, XV, Y0, YV, i; int X[MAXQ], Y[MAXQ]; char A[MAXQ][MAXS]; int main() { // uncomment the two following lines if you want to read/write from files // freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); assert(2 == scanf("%d%d", &N, &M)); assert(4 == scanf("%d%d%d%d", &X0, &Y0, &XV, &YV)); assert(1 == scanf("%d", &Q)); for (i = 0; i < Q; ++i) assert(2 == scanf("%d%d", &X[i], &Y[i])); // INSERT YOUR CODE HERE for (i = 0; i < Q; ++i) printf("%s\n", A[i]); return 0; }