Dot and Cross

  • + 0 comments

    import numpy as np

    n = int(input())

    a = np.array([list(map(int,(input().strip().split()))) for _ in range(n)]) b = np.array([list(map(int,(input().strip().split()))) for _ in range(n)])

    print(a @ b)