Sum and Prod

  • + 0 comments

    import numpy as np

    n , m = map(int,input().split(' '))

    arr = np.array([list(map(int,input().split(' '))) for _ in range(n)])

    print(np.prod(np.sum(arr,axis=0)))