You are viewing a single comment's thread. Return to all comments →
import numpy N, M = map(int, input().split()) rows = [numpy.array((input().split()), dtype='int') for i in range(N)] arr = numpy.array(rows).reshape(N, M) print(arr.sum(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 →