-->
当前位置:首页 > 题库

PROGRAMMING:Matrix addition

Luz5年前 (2021-05-10)题库528
The following procedure is to add matrix A and matrix B to get matrix C, and then output the elements of matrix C by row.
###Input format:
The first is two integers m and n (1 < m, n < 10), which means that matrix A and B are m rows and N columns.
Then there are m rows, n integers in each row, representing matrix A,
Then there are m rows, n integers in each row, representing matrix B.
###Output format:
Output matrix C by line.
###Input example:
```in
3 4
11 25 73 54
4 105 687 36
68 99 25 512
89 75 27 46
96 -5 -587 64
32 1 75 -412
```
###Output example:
```out
100 100 100 100
100 100 100 100
100 100 100 100
```







answer:If there is no answer, please comment