You are viewing a single comment's thread. Return to all comments →
I'm sure there's a much better way to do this with Python 2, but this is what I got
a = [int(x) for x in raw_input().split()] b = [int(x) for x in raw_input().split()] print sum([1 for x in range(3) if a[x] > b[x]]), sum([1 for x in range(3) if a[x] < b[x]])
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'm sure there's a much better way to do this with Python 2, but this is what I got