[20250908] BOJ / G4 / 알고스팟 / 이강현 #847
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/1261
🧭 풀이 시간
15분
👀 체감 난이도
✏️ 문제 설명
1,1부터 N,M까지 벽을 최소로 뚫어서 가는 경우에 뚫는 횟수 출력.
🔍 풀이 방법
0-1 BFS
안 뚫는 경우 큐 앞에, 뚫는 경우 큐 뒤에 넣어서 N,M 가면 종료
⏳ 회고
BFS 안 푼지 오래돼서 오랜만에 풀었다. 요즘 알고리즘이 풀기 싫다.