You are viewing a single comment's thread. Return to all comments →
import numpy as np n, m = map(int, input().split()) A = [] B = [] for i in range(n): A.append([*map(int, input().split())]) A = np.array(A) for j in range(n): B.append(list(map(int, input().split()))) B = np.array(B) print(np.add(A, B)) print(A - B) print(np.multiply(A, B)) print(np.floor_divide(A, B)) print(A % B) print(A ** B)
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Array Mathematics
You are viewing a single comment's thread. Return to all comments →
For Python3 Platform