백준 6603 파이썬 (1) 썸네일형 리스트형 [백준] 로또 6603 Python 1 2 3 4 5 6 7 8 9 10 11 12 import itertools while True: a, *b = map(int, input().strip().split()) if a == 0: break if a != 0: c = itertools.combinations(b,6) for i in c: for j in i: print(j, end=" ") print("") print("") 가변적인 길이의 input을 리스트로 받기 위한 *를 이용 (개꿀) 이전 1 다음