Two $n \times m$ matrices are given (the first, then the second). Print their element-wise sum.
Input
Line 1: $n$ $m$. Next $n$ lines: matrix $A$. Next $n$ lines: matrix $B$.
Output
Print the sum matrix, rows on separate lines.
Example 1
Input
2 3 1 2 3 4 5 6 10 20 30 40 50 60
Output
11 22 33 44 55 66
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.