Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

https://www.acmicpc.net/problem/12904

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

두 문자열 S와 T가 주어졌을 때, S를 T로 바꾸려고 함

  1. 문자열의 뒤에 A 추가
  2. 문자열을 뒤집고 뒤에 B 추가
    S를 T로 만들 수 있는지 없는지 알아내기

🔍 풀이 방법

역순으로 시도했다.
문자열이 더 긴 T를 하나씩 줄여가면서 S를 만들 수 있는지를 확인

⏳ 회고

StringBuilder 좋다..

@suyeun84 suyeun84 self-assigned this Jul 15, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Jul 15, 2025
@ShinHeeEul ShinHeeEul merged commit c24e0ea into main Jul 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants