We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24bb0a8 commit 1825277Copy full SHA for 1825277
Week6/개인/n과m4/suhyun1.py
@@ -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