You are viewing a single comment's thread. Return to all comments →
import numpy
n,m = map(int, input().split())
data = []
for _ in range(n): data.append(list(map(int, input().split())))
array = numpy.array(data)
col_sum = numpy.sum(array, axis=0) result = numpy.prod(col_sum) print(result)
Seems like cookies are disabled on this browser, please enable them to open this website
Sum and Prod
You are viewing a single comment's thread. Return to all comments →
import numpy
n,m = map(int, input().split())
data = []
for _ in range(n): data.append(list(map(int, input().split())))
array = numpy.array(data)
col_sum = numpy.sum(array, axis=0) result = numpy.prod(col_sum) print(result)