Skip to content

Conversation

@JHLEE325
Copy link
Contributor

🧷 문제 링크

https://www.acmicpc.net/problem/5427

🧭 풀이 시간

40분

👀 체감 난이도

✏️ 문제 설명

불과 벽이 있는 공간에서 불은 매초 상,하,좌,우 로 퍼집니다.
이 때 상근이가 탈출할 수 있다면 최소 시간을
탈출할 수 없다면 IMPOSSIBLE 을 출력하는 문제입니다.

🔍 풀이 방법

bfs를 사용하여 풀었습니다.
불 먼저 이동한 후 상근이를 이동시키는 방식을 사용하였고
불 방문 배열, 상근이 방문 배열을 따로 두어 구현하였습니다.

⏳ 회고

정석적인 bfs 문제였습니다

@JHLEE325 JHLEE325 added the success 👍 해설을 보지 않고 풀었을 때 label Aug 25, 2025
@ShinHeeEul ShinHeeEul merged commit 90bf86b into main Aug 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants