Skip to content

Commit e5bcdbb

Browse files
author
hangyeol
committed
112차 2번 문제풀이
1 parent 7b173ee commit e5bcdbb

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import sys
2+
3+
def main():
4+
input = sys.stdin.readline
5+
S = str(input().strip())
6+
T = str(input().strip())
7+
8+
makeT(S, T)
9+
10+
def makeT(current, T):
11+
if len(current) > len(T):
12+
return
13+
if current == T:
14+
print(1)
15+
16+
makeT(current + 'A', T)
17+
makeT((current + 'B')[::-1], T)
18+
19+
20+
if __name__ == '__main__':
21+
main()

0 commit comments

Comments
 (0)