#415. Maximal submatrix
Maximal submatrix
Description
Given a matrix of n rows and m columns,find the largest area submatrix which is non decreasing on each column
Format
Input
The first line contains an integer representing the number of test cases. For each test case, the first line contains two integers representing the size of the matrix the next line followed. the -th line contains integers representing the value of matrix It is guaranteed that there are no more than testcases with
Output
For each test case, print a integer representing the Maximal submatrix
Samples
1
2 3
1 2 4
2 3 3
4