Rows with maximum sum
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
A two-dimensional array of size is given. Find the rows in which the sum of the elements is the maximum.
Input
The first line contains two numbers and — the number of rows and columns. Then given rows of integers — the elements of array.
All numbers do not exceed by absolute value. Numbering in the array starts with .
Output
Print in one line the numbers of the rows where the sum of elements is maximum.
Examples
Input #1
Answer #1
Submissions 4K
Acceptance rate 39%