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