We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 598c97a commit 46e7e71Copy full SHA for 46e7e71
1 file changed
live9/test99/문제2/박희경.py
@@ -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