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

PROGRAMMING:Matrix multiplication

Luz5年前 (2021-05-10)题库435
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:
First, there are three integers m, N, P (1 < m, N, P < 10), which represent that matrix A is m row and n column, B is n row and P column, and C is m row and P column.
Then there are m rows, n integers in each row, representing matrix A,
Next there are n rows, each with P integers, representing matrix B.
###Output format:
Output matrix C by line.
###Input example:
```in
3 5 2
1 2 3 4 5
6 5 4 3 2
-1 -2 -2 -1 0
1 2
2 1
1 2
2 1
1 1
```
###Output example:
```out
21 19
28 30
-9 -9
```







answer:If there is no answer, please comment