3326: 简单题目

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:1

Description

给你一个N*M(N,M<=1000)的01矩形,求一个面积最大的不包含数字1的矩形。

Input

第一行两个数N,M。
接下来N行,每行M个数为0或1。

Output

一个数ans表示最大空矩形的面积。

Sample Input Copy

2 4
1 0 0 0
0 1 1 0

Sample Output Copy

3