AdvancedRating 1600
Largest Square of Ones
In a grid of 0s and 1s, print the area of the largest square containing only 1s.
Input
r c, then r lines of digits.
Output
An area.
Sample 1
Input
4 5 10100 10111 11111 10010
Output
4
Sample 2
Input
1 1 0
Output
0
Output appears here