思路: #include <cstdio> #include <iostream> using namespace std; const int N = 1010; int n,m,k,a[N][N]; int check(int x1,int y1,int x2,int y2){ return a[x2][y2] - a[x1-1][y2] - a[x2][y1-1] + a[x1-1][y1-1]; } int main(){ scanf("%d%d%d",&n,&m,&k); for(int i = 1;i &l...