LARGEST ROW-COLUMN


Submit solution

Points: 10
Time limit: 8.0s
Memory limit: 35M

Author:
Problem type
Allowed languages
C

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

There are no comments at the moment.