Skip to content

Instantly share code, notes, and snippets.

@libert-xyz
Created July 2, 2016 20:02
Show Gist options
  • Save libert-xyz/207825ce408733bb1a00a6e1ad3484e0 to your computer and use it in GitHub Desktop.
Save libert-xyz/207825ce408733bb1a00a6e1ad3484e0 to your computer and use it in GitHub Desktop.
#7/2/16
#https://www.hackerrank.com/challenges/itertools-product
from itertools import product
a = map(int,raw_input().split())
b = map(int,raw_input().split())
# ca = [(x,y) for x in a for y in b]
ca = (product(a,b))
for i in ca:
print i,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment