You are viewing a single comment's thread. Return to all comments →
My compact solution…
import sys import numpy as np print([ (n := int(input())), (ab := np.loadtxt(sys.stdin, int))[:n] @ ab[n:] ][1])
It's a one-liner, broken here for clarity.
Seems like cookies are disabled on this browser, please enable them to open this website
Dot and Cross
You are viewing a single comment's thread. Return to all comments →
My compact solution…
It's a one-liner, broken here for clarity.