[20260409] BOJ / G3 / 불! / 김민진#2064
Merged
ShinHeeEul merged 1 commit intomainfrom Apr 9, 2026
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.
🧷 문제 링크
불!
🧭 풀이 시간
20분
👀 체감 난이도
✏️ 문제 설명
지훈이가 불을 피해서 건물을 빠져나갈 수 있는 최단거리
🔍 풀이 방법
BFS
지훈이랑 불을 하나의 큐에 전부 넣고 BFS 돌리면 됩니다
그런데 지훈이가 불이 번지기 전에 먼저 움직일 수 있으니까 큐에는 지훈이 먼저 들어가야 함
⏳ 회고
지훈이의 탈출 조건이 조금 까다로웠음
꼼꼼하게 설계하자