461. Richest Customer Wealth
EasyMatrix
Row i lists customer i's money in each bank. Print the largest row total.
Input format
Line 1: m n Next m lines: n integers
Output format
The maximum wealth.
Example 1
Input
2 3 1 2 3 3 2 1
Output
6
Example 2
Input
3 2 1 5 7 3 3 5
Output
10
Constraints
1 ≤ m, n ≤ 50
Read input from standard input and print the answer to standard output. Your code is judged against 3 test cases, most of them hidden.
Loading the MyLoginn IDE…