Skip to content

Commit 1418fe4

Browse files
author
hangyeol
committed
124차 2번 문제풀이
1 parent 9096674 commit 1418fe4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import sys
2+
3+
def main():
4+
input = sys.stdin.readline
5+
6+
N = int(input())
7+
8+
result = []
9+
10+
def dfs(num):
11+
result.append(num)
12+
last_digit = num % 10
13+
for i in range(last_digit):
14+
dfs(num * 10 + i)
15+
16+
17+
if __name__ == '__main__':
18+
main()

0 commit comments

Comments
 (0)