二维差分 #include<bits/stdc++.h>using namespace std;const int N = 1e3 + 5;int a[N][N],d[N][N];int main(){int n, m, q;cin >> n >> m >> q;for (int i = 1 ; i <= n; i++){for (int j = 1; j <= m; j++){cin
题目描述: 解题思路: 本题采用二分中的二分答案。且本题check()用不到开数组,所以不需要开数组,脑海中想象一个数组就好了 题解: #include<bits/stdc++.h>using namespace std;using ll = long long;ll n, m , k;ll check(ll mid)//引入参数为ll类型{ll res