CODE: #include<cstdio> #include<cstring> #include<queue> using namespace std; bool mat[105][105]; bool root[105]; int n,m; int R; int cnt[105]; int an ...
分类:
其他好文 时间:
2017-07-15 16:47:06
阅读次数:
193
http://acm.hdu.edu.cn/showproblem.php?pid=2870 Largest Submatrix Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Tota ...
分类:
其他好文 时间:
2017-07-11 21:16:37
阅读次数:
147
原题目: Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. ...
分类:
其他好文 时间:
2017-07-09 19:31:45
阅读次数:
177
Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array ...
分类:
其他好文 时间:
2017-07-09 17:17:26
阅读次数:
119
【题目链接】:click here~~ 【题目大意】: A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal wid ...
分类:
其他好文 时间:
2017-07-08 17:44:06
阅读次数:
258
leetcode 152. Maximum Product Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest product. Fo ...
分类:
其他好文 时间:
2017-07-06 16:49:23
阅读次数:
91
题目描述 Farmer John is considering buying more land for the farm and has his eye on N (1 <= N <= 50,000) additional rectangular plots, each with integer ...
分类:
其他好文 时间:
2017-07-05 11:46:12
阅读次数:
243
/** * Find the contiguous subarray within an array (containing at least one number) * which has the largest sum. For example, given the array [-2,1,-3... ...
分类:
其他好文 时间:
2017-07-04 20:25:02
阅读次数:
152
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 思路:此题的意思是给一个为0或1的矩阵,求所有为1组成的最大矩阵 ...
分类:
其他好文 时间:
2017-07-03 13:52:32
阅读次数:
105
leetcode 53. Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, gi ...
分类:
其他好文 时间:
2017-07-03 12:07:01
阅读次数:
136