Sum and Prod

  • + 0 comments
    import numpy as np
    N,M = map(int,input().split())
    arr = np.array([input().split() for _ in range(N)],int)
    arr = np.sum(arr,axis = 0)
    print(np.prod(arr))