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