The sum of elements of a two-dimensional array
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Given a two-dimensional array of size . Find the sum of its elements.
Input
The first line of the input contains two numbers and , the number of rows and the number of columns, respectively.
The following lines each contain numbers - the elements of the array.
Output
Output a single number, the sum of the elements of the array.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 69%