14 lines
192 B
Python
14 lines
192 B
Python
n,m=map(int,input().split())
|
|
arr=[]
|
|
|
|
def bt():
|
|
if len(arr)==m:
|
|
print(*arr)
|
|
return
|
|
|
|
for i in range(1,n+1):
|
|
arr.append(i)
|
|
bt()
|
|
arr.pop()
|
|
|
|
bt() |