Sum and Prod

  • + 0 comments

    easy two liner:

    import numpy as np
    print(np.prod(np.sum(np.array([list(map(int,input().split())) for _ in range(int(input().split()[0]))]),axis = 0)))