You are viewing a single comment's thread. Return to all comments →
import numpy
n,m = [int(x) for x in input().split()]
l =[] for i in range(n): l.append([int(x) for x in input().split()]) a = numpy.array(l) print(numpy.sum(a,axis =0).prod())
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 = [int(x) for x in input().split()]
l =[] for i in range(n): l.append([int(x) for x in input().split()]) a = numpy.array(l) print(numpy.sum(a,axis =0).prod())