[20250825] BOJ / G4 / 불 / 이준희 #736
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/5427
🧭 풀이 시간
40분
👀 체감 난이도
✏️ 문제 설명
불과 벽이 있는 공간에서 불은 매초 상,하,좌,우 로 퍼집니다.
이 때 상근이가 탈출할 수 있다면 최소 시간을
탈출할 수 없다면 IMPOSSIBLE 을 출력하는 문제입니다.
🔍 풀이 방법
bfs를 사용하여 풀었습니다.
불 먼저 이동한 후 상근이를 이동시키는 방식을 사용하였고
불 방문 배열, 상근이 방문 배열을 따로 두어 구현하였습니다.
⏳ 회고
정석적인 bfs 문제였습니다