eolymp
bolt
Try our new interface for solving problems
Problems

Sum of rows

Sum of rows

Two dimensional array of size $n \cdot n$ is given. Find the sum of elements in its rows. \InputFile First line contains the size of array $n~(n \le 100)$. Each of the next $n$ lines contains $n$ integers. \OutputFile In the $i$-th line print the sum of elements in the $i$-th row of array. \includegraphics{https://static.eolymp.com/content/je/je53e4somd5qra0od2dss1piq8.gif}
Time limit 1 second
Memory limit 128 MiB
Input example #1
3
4 6 7
8 3 2
5 4 2
Output example #1
17
13
11
Author Mykhailo Medvediev