摘要: 一般分为两种做法: ##DP法 复杂度O(n*m) 问题引入 有一个n*m的矩阵,初始为白色,里面有s个黑色格子,现在问能在矩阵里面找到的最大不包含 黑色格子的子矩阵/正方形(n, m<=1000, s<=n*m) 例题:P2701 [USACO5.3]巨大的牛棚Big Barn(https://w 阅读全文
posted @ 2020-08-12 12:27 liweihang 阅读(259) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define LL long long using namespace std; struct node { LL x, y; } a[5010]; int main() { LL L, W; scanf("%lld%lld", &L, &W); i 阅读全文
posted @ 2020-08-12 09:58 liweihang 阅读(8) 评论(0) 推荐(0) 编辑
Live2D