~/algor $ cat problems/matritsa-qator-yigindilari
Row sums
Easy
1000 ms
128 MB
24%
An integer matrix of size $n \times m$ is given. Compute the sum of the elements of every row.
Input
The first line contains two positive integers $n$ and $m$. Each of the next $n$ lines contains $m$ integers.
Output
One line with $n$ space-separated integers — the row sums.
Note
$1 \le n, m \le 200$
$-1000 \le a_{i,j} \le 1000$
Examples
Input #1
2 3 1 2 3 4 5 6
Output #1
6 15
Input #2
3 1 5 -5 0
Output #2
5 -5 0