You are viewing a single comment's thread. Return to all comments →
Just use this easy code
import numpy
n=int(input()) A=[] B=[] for _ in range(n): A.append(list(map(int,input().split()))) for _ in range(n): B.append(list(map(int,input().split())))
A=numpy.array(A) B=numpy.array(B)
C=numpy.dot(A,B)
print(C)
Seems like cookies are disabled on this browser, please enable them to open this website
Dot and Cross
You are viewing a single comment's thread. Return to all comments →
Just use this easy code
import numpy
n=int(input()) A=[] B=[] for _ in range(n): A.append(list(map(int,input().split()))) for _ in range(n): B.append(list(map(int,input().split())))
A=numpy.array(A) B=numpy.array(B)
C=numpy.dot(A,B)
print(C)