You are viewing a single comment's thread. Return to all comments →
My compact solution…
import sys import numpy as np print(np.loadtxt(sys.stdin.readlines()[1:], int).sum(axis=0).prod())
If the import lines didn't count, this could be considered a one-liner.
import
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 →
My compact solution…
If the
import
lines didn't count, this could be considered a one-liner.