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.
n,m = map(int,input().split())
a1 = [[0]*m]*n
for i in range(n):
a1[i] = list(map(int,input().split()))
a = numpy.array(a1)
s = numpy.sum(a,axis = 0)
p = numpy.prod(s)
print(p)
I'm using this track scirpt with my Neoprene Bags page.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Different Ways
You are viewing a single comment's thread. Return to all comments →
n,m = map(int,input().split()) a1 = [[0]*m]*n for i in range(n): a1[i] = list(map(int,input().split())) a = numpy.array(a1) s = numpy.sum(a,axis = 0) p = numpy.prod(s) print(p) I'm using this track scirpt with my Neoprene Bags page.