first commit
from old repository to a new repository
This commit is contained in:
17
boj/15656.py
Normal file
17
boj/15656.py
Normal file
@@ -0,0 +1,17 @@
|
||||
n,m=map(int,input().split())
|
||||
inarr=list(map(int,input().split()))
|
||||
arr=[]
|
||||
|
||||
inarr.sort()
|
||||
|
||||
def bt():
|
||||
if len(arr)==m:
|
||||
print(*arr)
|
||||
return
|
||||
|
||||
for i in inarr:
|
||||
arr.append(i)
|
||||
bt()
|
||||
arr.pop()
|
||||
|
||||
bt()
|
||||
Reference in New Issue
Block a user