You are viewing a single comment's thread. Return to all comments →
import numpy as np n, m = (int(n) for n in input().split(' ')) a = np.array([[int(n) for n in input().split(' ')] for _ in range(n)], int) b = np.array([[int(n) for n in input().split(' ')] for _ in range(n)], int) print(np.add(a, b)) print(np.subtract(a, b)) print(np.multiply(a, b)) print(a // b) print(np.mod(a, b)) print(np.power(a, b))
Seems like cookies are disabled on this browser, please enable them to open this website
Array Mathematics
You are viewing a single comment's thread. Return to all comments →