Sum and Prod

  • + 0 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))