We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Numpy
- Sum and Prod
- Discussions
Sum and Prod
Sum and Prod
Sort by
recency
|
377 Discussions
|
Please Login in order to post a comment
For Python3 Platform
import numpy as np
print(np.prod(np.sum(np.array([input().split() for _ in range(int(input().split()[0]))], int), axis = 0)))