Skip to content

Commit d10c353

Browse files
committed
99차 2번 문제풀이
1 parent 563de51 commit d10c353

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

live9/test99/문제2/백유진.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from itertools import permutations
2+
n, m = map(int, input().split())
3+
arr = list(map(int, input().split()))
4+
5+
result = []
6+
for p in permutations(arr, m):
7+
result.append(p)
8+
9+
result.sort()
10+
11+
for r in result:
12+
print(*r)

0 commit comments

Comments
 (0)