We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Numpy
- Dot and Cross
- Discussions
Dot and Cross
Dot and Cross
Sort by
recency
|
341 Discussions
|
Please Login in order to post a comment
import numpy as np
n= int(input()) a = np.array([list(map(int, input().split(' '))) for i in range(n)]) b = np.array([list(map(int, input().split(' '))) for i in range(n)]) print(np.dot(a,b ))