Закинул ещё мусора с Интеллекта, наверное это последнее
This commit is contained in:
9
uts/uts_17_aut_py/4/A.py
Normal file
9
uts/uts_17_aut_py/4/A.py
Normal file
@@ -0,0 +1,9 @@
|
||||
n, k, x = list(map(int, input().split()))
|
||||
from itertools import combinations_with_replacement
|
||||
cnt = 0
|
||||
for i in combinations_with_replacement(range(1, n+1), k):
|
||||
if cnt == x:
|
||||
for j in i:
|
||||
print(j, end=' ')
|
||||
break
|
||||
cnt += 1
|
||||
Reference in New Issue
Block a user