You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
a = list(map(int, input().split())) b = list(map(int, input().split())) aliceScore = sum([(1 if a[i] > b[i] else 0) for i in range(3)]) bobScore = sum([(1 if a[i] < b[i] else 0) for i in range(3)]) print(aliceScore, bobScore)
Feel free to ask if you have any questions :)
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 →
Here is Python 3 solution from my HackerrankPractice repository:
Feel free to ask if you have any questions :)