Dot and Cross

  • + 0 comments

    import numpy as np

    n = int(input()) a,b= [],[] for i in range(n): a.append(list(map(int, input().split()))) for j in range(n): b.append(list(map(int, input().split()))) print(np.dot(a,b))