#P5943. [POI 2002] 最大的园地
[POI 2002] 最大的园地
Problem Description
In an square, find the largest rectangle consisting only of 0, and output its area.
Input Format
The first line contains an integer .
The next lines each contain numbers describing the square.
Output Format
Output the area of the largest rectangle consisting only of 0.
5
0 1 0 1 0
0 0 0 0 0
0 0 0 0 1
1 0 0 0 0
0 1 0 0 0
9
Hint
For of the testdata, .
Translated by ChatGPT 5