You are viewing a single comment's thread. Return to all comments →
Another python 2 solution. Not better, because less readable but works independantly of the range:
a = map(int,raw_input().split()) b = map(int,raw_input().split()) print ' '.join(map(str,map(sum,zip(*[[x>y,y>x] for x,y in zip(a,b)]))))
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 →
Another python 2 solution. Not better, because less readable but works independantly of the range: