IntermediateRating 1400
Biggest Island
Print the number of cells in the largest island of # (cells connect up, down, left and right). Print 0 if there is no land.
Input
r and c, then r rows.
Output
One integer.
Sample 1
Input
3 4 ##.. #..# ..##
Output
3
Sample 2
Input
2 2 .. ..
Output
0
Output appears here