restructure zeta/** to storage/zeta/**
This commit is contained in:
11
storage/zeta/py/completed/15649_recursive.py
Normal file
11
storage/zeta/py/completed/15649_recursive.py
Normal file
@@ -0,0 +1,11 @@
|
||||
n, m = map(int, input().split())
|
||||
def solve(ns, m):
|
||||
for i in range(1, n+1):
|
||||
if i in ns:
|
||||
continue
|
||||
else:
|
||||
if m == 1:
|
||||
print(" ".join(map(str, ns+(i,))))
|
||||
else:
|
||||
solve(ns+(i,), m - 1)
|
||||
solve((), m)
|
||||
Reference in New Issue
Block a user