import sysinput = sys.stdin.readlineN, M = map(int, input().split())visited = [False] * Nnumbers = list(map(int, input().split()))numbers.sort()result = [-1] * Mdef backTracking(depth): if depth == M: print(' '.join(map(str, result))) return # temp 변수를 활용하여 완성된 중복 순열을 방지한다. temp = 0 for i in range(N): if not visited[i] and temp != numbers[i]: resu..