- Time limit: 1.00 s
- Memory limit: 512 MB
What is the maximum area of a rectangular building that can be placed in the forest so that no trees must be cut down?
The first input line contains integers $n$ and $m$: the size of the forest.
After this, the forest is described. Each square is empty (
.) or has trees (
Print the maximum area of a rectangular building.
- $1 \le n,m \le 1000$