11688 - 231001_11/23_practice10-2
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
| Case 5 |
1 sec |
32 MB |
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:
-
There is a space after each number, including the last number in each row, and change a new line after each p elements.
-
Change a new line at the end.
Tags