11688 - 231001_11/23_practice10-2   

Description

  • Input three positive integers n, m and p and two matrices A and B with all integers, where A is an n×m matrix and B is an m×p matrix.

  • Calculate C = A×B, where C is an n×p matrix.

  • n, m, p ≤ 100

Input

  • Input: Three positive integer n≤100, m≤100 and p≤100 and two matrices A and B.

  • Input format: See the sample I/O

Output

  • Output: The multiplication C.

  • Output format:  

  1. There is a space after each number, including the last number in each row, and change a new line after each p elements.

  2. Change a new line at the end.

Sample Input  Download

Sample Output  Download

Tags




Discuss