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