We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b173ee commit e5bcdbbCopy full SHA for e5bcdbb
1 file changed
live11/test112/문제2/백한결.py
@@ -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