Dot and Cross

  • + 0 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)