백준 6603 - 로또


백준 6603 - 로또

123456789101112131415161718from itertools import combinations while True: nums = list(map(int, input().split())) n = nums.pop(0) if n == 0: break nums = list(combinations(nums,6)) for i in range(n): nums[i] = tuple(sorted(list(nums[i]))) nums = sorted(nums) for i in nums: print(" ".join(map(str, i))) print()Colored by Color Scriptercs...

백준 6603 - 로또에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.



원문링크 : 백준 6603 - 로또