You are viewing a single comment's thread. Return to all comments →
import numpy as np
N,M = list(map(int, input().split())) ll=[] for i in range(N): arr=np.array(list(map(int, input().split()))) ll.append(arr) a3=np.sum(ll, axis = 0) print(np.prod(a3))
Seems like cookies are disabled on this browser, please enable them to open this website
Sum and Prod
You are viewing a single comment's thread. Return to all comments →
import numpy as np
N,M = list(map(int, input().split())) ll=[] for i in range(N): arr=np.array(list(map(int, input().split()))) ll.append(arr) a3=np.sum(ll, axis = 0) print(np.prod(a3))