Skip to content

Commit

Permalink
Merge pull request #69 from AlgoLeadMe/14-fnzksxl
Browse files Browse the repository at this point in the history
14-fnzksxl
  • Loading branch information
fnzksxl authored Apr 10, 2024
2 parents 67a75ed + bfaf810 commit 7365458
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fnzksxl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
| 9์ฐจ์‹œ | 2024-02-23 | ๊ทธ๋ž˜ํ”„ | [์ˆœ์œ„](https://school.programmers.co.kr/learn/courses/30/lessons/49191) | [#37](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/37) |
| 10์ฐจ์‹œ | 2024-03-07 | ๊ตฌํ˜„ | [๋‚˜๋ฌด ์žฌํ…Œํฌ](https://www.acmicpc.net/problem/16235) | [#52](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/52) |
| 11์ฐจ์‹œ | 2024-03-10 | ํˆฌํฌ์ธํ„ฐ | [๋ณด์„ ์‡ผํ•‘](https://school.programmers.co.kr/learn/courses/30/lessons/67258) | [#56](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/56) |
| 12์ฐจ์‹œ | 2024-03-13 | ๋ฒจ๋งŒํฌ๋“œ | [ํƒ€์ž„๋จธ์‹ ](https://www.acmicpc.net/problem/11657) | [#](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/58) |
| 12์ฐจ์‹œ | 2024-03-13 | ๋ฒจ๋งŒํฌ๋“œ | [ํƒ€์ž„๋จธ์‹ ](https://www.acmicpc.net/problem/11657) | [#58](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/58) |
| 13์ฐจ์‹œ | 2024-03-20 | ๋‹ค์ต์ŠคํŠธ๋ผ | [์„œ๊ฐ•๊ทธ๋ผ์šด๋“œ](https://www.acmicpc.net/problem/14938) | [#64](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/64) |
| 14์ฐจ์‹œ | 2024-03-28 | ์Šคํƒ | [๋ฌธ์ž์—ด ํญ๋ฐœ](https://www.acmicpc.net/problem/9935) | [#69](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/64) |
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import sys

input = sys.stdin.readline

word = list(input().strip())
bomb = list(input().strip())

key = bomb[-1]
bomb.reverse()

stack = []

for i in range(len(word)):
stack.append(word[i])
if word[i] == key and len(stack) >= len(bomb):
temp = []
for j in range(len(bomb)):
temp.append(stack.pop())
if temp == bomb:
continue
else:
for j in range(len(temp), 0, -1):
stack.append(temp[j-1])

if len(stack) == 0:
print('FRULA')
else:
for i in range(len(stack)):
print(stack[i], end='')

0 comments on commit 7365458

Please sign in to comment.