You are viewing a single comment's thread. Return to all comments →
import numpy as np N, M = list(map(int, input().split())) a1 = np.array([input().split() for _ in range(N)], int) a2 = np.array([input().split() for _ in range(N)], int) print(*[eval('a1'+i+'a2') for i in ['+','-','*','//','%','**']], sep='\n')
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 →