[20251121] BOJ / P5 / 배열에서 이동 #1470
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/1981
🧭 풀이 시간
60분
👀 체감 난이도
✏️ 문제 설명
(1, 1) -> (N, N)까지 가는데 숫자를 지나감. (최대 - 최소) 값이 가장 작은 값은?
🔍 풀이 방법
최대, 최소 값을 정해놓고 그 값으로 경로를 갈 수 있는지 확인
⏳ 회고
혁준이가 말했다. "형 나는 무슨 문젠지 모르면 일단 이분탐색해"라고
BFS에서 이전 상태를 담고 있는 건 한계가 있네. 앞으로 이런 문제 나오면 그럴 생각 손절하고 빨리 노가다해야겠다.