Skip to content

Commit 46e7e71

Browse files
committed
99차 2번 문제 풀이
1 parent 598c97a commit 46e7e71

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

live9/test99/문제2/박희경.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import sys
2+
from itertools import *
3+
4+
input = sys.stdin.readline
5+
6+
n, m = map(int, input().split())
7+
arr = sorted(list(map(int, input().split())))
8+
9+
for perm in permutations(arr, m):
10+
print(*perm)

0 commit comments

Comments
 (0)