You are viewing a single comment's thread. Return to all comments →
I can't decide if I like aggregating the lines together better or not.
import sys lines = (line.rstrip().split(' ') for line in sys.stdin) pairs = zip(*((int(elem) for elem in line) for line in lines)) cols = zip(*((a>b, a<b) for a,b in pairs)) print(' '.join(str(sum(col)) for col in cols))
Seems like cookies are disabled on this browser, please enable them to open this website
Compare the Triplets
You are viewing a single comment's thread. Return to all comments →
I can't decide if I like aggregating the lines together better or not.