Description

請撰寫一個程式,能夠計算矩陣乘法。

矩陣乘法執行過程如下圖所示

相乘結果為

Please write a program that can calculate matrix multiplication.

The execution process of matrix multiplication is shown in the figure below

The result of the multiplication is

Input

輸入包含以下資訊:

第一行為三個正整數�,�,�(�,�,�≤10)n,m,p(n,m,p≤10)

接下來為第一個矩陣的輸入,矩陣長寬為n, m。

接下來為第二個矩陣的輸入,矩陣長寬為m, p。

The input contains the following information:

The first line contains three positive integers �,�,�(�,�,�≤10)n,m,p(n,m,p≤10)

Next is the input of the first matrix, the length and width of the matrix are n, m.