首页 > 轰炸区最优选取
头像 待宰的羔羊
发表于 2020-04-28 14:50:07
此题相当于求二维前缀和,然后得到最大的要求子矩阵和。可能我DFS太弱了吧,就想到了这个方法;#include<bits/stdc++.h>using namespace std;int d[55][55];int main(){ int n,k; while(scanf("% 展开全文
头像 coder+9
发表于 2021-11-30 11:16:41
二维前缀和 可与概率论与数理统计的二维概率联系记忆 ">#include<cstring> const int N = 1e9 + 7; using namespace std; int n,k; int a[55][55],sum[55][55]; int main(){ 展开全文