Given an $N \times M$ binary matrix, find the area of the biggest rectangle consisting entirely of values of $1$, knowing that you can permute the columns of the matrix.
Constraints
1 ≤ N ≤ 15000
1 ≤ M ≤ 1500
30% of the test cases will have $N,M ≤ 1024$
In C/C++, it is recommended that you usefgets()to read the input.
At the end of these two pieces of code, $s$ will contain the first line of the matrix.
输入格式
The first line of the input will contain two integers separated by one space: $N$ and $M$. The following $N$ lines will contain $M$ characters of $0$ or $1$, describing the matrix.
输出
The only line of the output will contain the area of the largest rectangle.