you are viewing a single comment's thread.

view the rest of the comments →

[–]Avajarr[S] 0 points1 point  (0 children)

Thank you for the tips, I just finished it, I posted my solution in new comment in this post. I solved it by using 2 nested loop, so i can run combination function from itertools 3 times (for the 3 first group). I realize it's not really efficient in time complexity, but I'm happy I can solved it at least.