#include <iostream> using namespace std; const int N = 1010; long long a[N][N], b[N][N]; void insert(int x1, int y1, int x2, int y2, int k) { b[x1][y1] += k; b[x1][y2 + 1] -= k; b[x2 + 1][y1] -= k; b[x2 + 1][y2 + 1] += k; } int main() { int n, m, q; cin >> n >...