LARGEST ROWCOLUMN
Submit solution
C
Points:
10
Time limit:
8.0s
Memory limit:
35M
Author:
Problem type
Allowed languages
Given a matrix, find the row with the largest sum. Also, print the column with the largest sum.
INPUT FORMAT
M - number of rows
N - number of columns
Matrix elements separated by a single space in row-major form
OUTPUT FORMAT
i - index of the column with the largest column sum
j - index of row with the largest row-sum
Comments