순열과 조합 backtracking 을 이용한 조합 n, m = map(int, input().split()) data = [] def combination(pre_num): if len(data) == m: print(*data) else: for i in range(1, n+1): if pre_num < i: data.append(i) combination(i) data.pop() combination(0) 순열 n, m = map(int, input().split()) data = [] def permutation(pre_list): if len(data) == m: print(*data) else: for i in range(1, n+1): if i not in pre_list: data.appe..