Skip to content

Commit 5942672

Browse files
committed
#34 : 15651_N과 M(3)
1 parent 983ad92 commit 5942672

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

이티준희/15651_N과 M(3).py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#15651_N과 M(3)
2+
# -> 런타임에러 발생
3+
N, M = map((int, input()).split())
4+
5+
list = []
6+
7+
def func() :
8+
if len(list) < M :
9+
for i in range(1, N+1) :
10+
list.append(i)
11+
func()
12+
list.pop()
13+
14+
else :
15+
print(*list)
16+
17+
func()

0 commit comments

Comments
 (0)