Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Sep 18, 2024
1 parent 25f59a5 commit 446a9ba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/hoskuldarhaska.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from itertools import product

n = int(input())

l = []
for _ in range(n):
l.append(sorted(input().split()[1:]))

for row in product(*l):
print(" ".join(row))

0 comments on commit 446a9ba

Please sign in to comment.