#include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false), cin.tie(0); typedef long long LL; //const int N=; int n, m, q; int x11, y11, x2, y2; int main() { IOS cin>>n>>m>>q; vector<vector<LL>> a(n+1, vector<LL>(m+1...