| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 1024 MB | 60 | 53 | 48 | 87.273% |
Given a rectangular configuration representing a floor plan, where ‘#’ indicates a pillar and ‘.’ a clear space:
...#...#.. ..##.#.... ......#.#. .#........ .........# .....#.#..
What is the area (number of dots) of the largest rectangular carpet whose edges are parallel to the boundary of the floor that can be laid on this piece of land? For the example above, the largest carpet is represented with ‘*’ symbols:
...#...#.. ..##.#.... ......#.#. .#*******. ..*******# .....#.#..
The area of this carpet is 14.
The rows are numbered from top to bottom starting from row 1, and the columns are numbered from left to right starting from column 1. You can assume that there are at most 20 rows and at most 40 columns.
The input consists of the following lines:
The output contains a single integer value, which is the area of the largest carpet that can be laid on the floor.
6 10 11 1 4 1 8 2 6 5 10 4 2 2 4 2 3 6 6 3 7 3 9 6 8
14