// NOTE: it is recommended to use this even if you don't understand the following code. #include #include #include #include using namespace std; int main() { // uncomment the two following lines if you want to read/write from files // ifstream cin("input.txt"); // ofstream cout("output.txt"); // fast input/output, needed for Q up to 200000 ios_base::sync_with_stdio(false); cin.tie(NULL); int N, M; cin >> N >> M; int X0, Y0, XV, YV; cin >> X0 >> Y0 >> XV >> YV; int Q; cin >> Q; vector X(Q), Y(Q); for (int i = 0; i < Q; ++i) cin >> X[i] >> Y[i]; vector A(Q); // INSERT YOUR CODE HERE for (int i = 0; i < Q; ++i) cout << A[i] << "\n"; return 0; }