The first line of input contains N
, the size of the grid (1≤N≤20). The next N lines describe the image, each consisting of N
characters.
4
ABBC
BBBC
AABB
ABBC
2
In this example, the two PCLs are the rectangles with contents
ABB
BBB
AAB
ABB
and
BC
BC
BB
BC