<filename>python/Numpy/np-dot-and-cross.py<gh_stars>0
# https://www.hackerrank.com/challenges/np-dot-and-cross/problem

import numpy as np

N = int(input())
A = np.array([input().split() for _ in range(N)], int)
B = np.array([input().split() for _ in range(N)], int)
print(np.dot(A, B))

<filename>python/Numpy/np-dot-and-cross.py<gh_stars>0
# https://www.hackerrank.com/challenges/np-dot-and-cross/problem

import numpy as np

N = int(input())
A = np.array([input().split() for _ in range(N)], int)
B = np.array([input().split() for _ in range(N)], int)
print(np.dot(A, B))

# https://www.hackerrank.com/challenges/np-dot-and-cross/problem