팰린드롬 만들기#61
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
유형: 구현 아닌가.... 으음, 브루트 포스
등급:실버
url: https://www.acmicpc.net/problem/1254
쉽다 쉬워 이 문제는 왼쪽과 오른쪽을 비교해서 하나가 무조건 팰린트롬이 되어야 합니다.
그리고 다른한쪽을 양쪽에 넣어주면 됩니다. 예시로
a와b에서 b가 팰린트롬이 되었다고 한다면, a 문자열과 뒤집은 a의 문자열을 b의 양끝에 붙여주면
또다른 팰린트롬이 완성이 되어진다.
이말은 문제에서 문자열을 추가해서 새로운 팰린트롬으로 만들어지는 경우를 찾으면 된다..~~