1203: 简单题目

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

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