일일 알고리즘 – 230324: (백준 6603) 로또, (백준 1182) 하위 시퀀스의 합, (백준 5430) AC
* 백준 6603 로또 https://www.acmicpc.net/problem/6603 6603호: 로또 입력은 여러 테스트 케이스로 구성됩니다. 각 테스트 케이스는 한 줄로 구성됩니다. 첫 번째 숫자는 k(6 < k < 13)이고 다음 k 숫자는 집합 S에 포함된 숫자입니다. S의 요소는 오름차순입니다. www.acmicpc.net from itertools import combinations while True: slist = list(map(int,input().split())) if slist(0)==0:break for out in combinations(slist(1:),6): print(*out, sep=' ') ... Read more