摘要: 悬线法 浅谈用极大化思想解决最大子矩阵问题 #include<bits/stdc++.h> using namespace std; int n,m,l[1010][1010],r[1010][1010],height[1010][1010]; char ch; bool f[1010][1010] 阅读全文
posted @ 2020-08-29 15:54 mybing 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 和上一道一样,只不过换成正方形罢了 #include<bits/stdc++.h> using namespace std; int x,y,ans=0,n,highest,lowest; struct one{int x,y;}; one e[10010]; bool cmp(one aa,one 阅读全文
posted @ 2020-08-29 11:35 mybing 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 学一些东西,然后发现竟然敲过这道题目,不过一遍a掉还是很舒服的 #include<bits/stdc++.h> using namespace std; int x,y,ans=0,n,highest,lowest; struct one{int x,y;}; one e[5010]; bool c 阅读全文
posted @ 2020-08-29 10:08 mybing 阅读(102) 评论(0) 推荐(0) 编辑