Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 427 Bytes

File metadata and controls

19 lines (17 loc) · 427 Bytes

You are given two arrays A and B. Both have dimensions of NxN. Your task is to compute their matrix product.

Input Format

The first line contains the integer N. The next N lines contains N space separated integers of array A. The following N lines contains N space separated integers of array B.

Output Format

Print the matrix multiplication of A and B.

Sample Input 2 1 2 3 4 1 2 3 4

Sample Output [[ 7 10] [15 22]]