You are viewing a single comment's thread. Return to all comments →
from numpy import array, sum, product n, m = map(int, input().split()) arr = [] for i in range(n): arr.append(list(map(int, input().split()))) arr = array(arr) print(product(sum(arr, axis=0)))
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Sum and Prod
You are viewing a single comment's thread. Return to all comments →
For Python3 Platform