Skip to content

Commit 1825277

Browse files
committed
feat:구현
1 parent 24bb0a8 commit 1825277

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Week6/개인/n과m4/suhyun1.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from itertools import combinations_with_replacement
2+
n, m = map(int, input().split())
3+
answers = list(combinations_with_replacement(range(1, n+1), m))
4+
for e in answers:
5+
print(' '.join(map(str, e)))

0 commit comments

Comments
 (0)