Matrix multiply
#描述#
Given is two matrixs,please calculate their product result.
#格式#
##输入格式##
First Line is two integer N1, M1 (0<N1, M1<=100),
N1 lines followed, each line contains M1 numbers,which is the first matrix.
Then is another two integer N2, M2 (0<N2, M2<=100)
N2 lines followed, each line contains M2 numbers,which is the first matrix.
All the integers inputed is beteen -300 and 300. Also it is ensure that M1==N2;
##输出格式##
For each case output the N1*M2 matrix as the product result.
#样例1#
##样例输入1##
1 1
1
1 1
1
3 3
1 2 3
4 5 6
7 8 9
3 3
1 0 1
0 1 0
0 0 1
##样例输出1##
1
1 2 4
4 5 10
7 8 16
#限制#
1000ms
32768KB
#提示#
#来源#
moonlight