[20250204] BOJ / G5 / 입력숫자 / 설진영 #23
Merged
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.
🧷 문제 링크
https://www.acmicpc.net/problem/8981
🧭 풀이 시간
40분
👀 체감 난이도
✏️ 문제 설명
X에서 특정 처리(처리 코드 제공) 후 Y가 나왓을때, Y를 보고 X 구하기
🔍 풀이 방법
첫 값이 동일함을 확인하고, 값 채우기를 역으로 수행하면 원본 배열 나옴
⏳ 회고
쉽게 생각하면 의외로 쉽게 풀리는데.. 첨에 너무 어렵게 생각했던 것 같다. 첫 값이 고정인 것이 힌트인듯