Created
October 10, 2017 22:44
-
-
Save codyhex/c97a2cad859f3f4ce2873d1ff685a1cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a nice example where you can use zip to compose pair together to compute them | |
a_triplet = map(int, input().split()) | |
b_triplet = map(int, input().split()) | |
alice_points = 0 | |
bob_points = 0 | |
for a_val, b_val in zip(a_triplet, b_triplet): | |
if a_val < b_val: | |
bob_points += 1 | |
elif a_val > b_val: | |
alice_points += 1 | |
print(alice_points, bob_points) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment