Skip to content

Commit f8b6711

Browse files
author
hangyeol
committed
99차 2번 문제 풀이
1 parent 9b16fd2 commit f8b6711

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

live9/test99/문제2/백한결.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import itertools
2+
3+
def main():
4+
N, M = map(int, input().split())
5+
A = list(map(int, input().split()))[:N]
6+
7+
A.sort()
8+
9+
for i in itertools.permutations(A, M):
10+
print(*i)
11+
12+
if __name__ == "__main__":
13+
main()

0 commit comments

Comments
 (0)