Description: Topic Description
Given a R rows C 01 column matrix, find one of the largest full-square sub-matrix, and outputs the area of the largest square sub-matrices.
[Enter]
The first line is given two positive integers R, C, represents the column matrix has R rows C
The next R rows C 01 column gives the matrix elements in the two adjacent rows separated by a space.
[Output]
A number of the largest area of the square sub-matrix (ie the number 1).
Input and output sample]
To Search:
File list (Check if you may need any files):
ttt.txt