Skip to content

Instantly share code, notes, and snippets.

@codyhex
Created October 10, 2017 22:44
Show Gist options
  • Save codyhex/c97a2cad859f3f4ce2873d1ff685a1cd to your computer and use it in GitHub Desktop.
Save codyhex/c97a2cad859f3f4ce2873d1ff685a1cd to your computer and use it in GitHub Desktop.
# 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