https://www.acmicpc.net/problem/6603
import itertools
while True:
k, *S = map(int, input().split())
S.sort()
if k == 0:
break
for result in itertools.combinations(S, 6):
print(' '.join(map(str, result)))
print()
'Python > Baekjoon' 카테고리의 다른 글
백준 11399번 : ATM (0) | 2022.11.16 |
---|---|
백준 5585번 : 거스름돈 (0) | 2022.11.16 |
백준 1759번 : 암호 만들기 (0) | 2022.11.14 |
백준 11659번 : 구간 합 구하기 4 (0) | 2022.11.14 |
백준 4948번 : 베르트랑 공준 (0) | 2022.10.18 |