Files

10 lines
170 B
Python
Raw Permalink Normal View History

2012-09-08 10:19:32 -06:00
import sys
from itertools import product
options = []
for line in sys.stdin:
options.append(line.strip().split())
for i in product(*options):
print ' '.join(i)