Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

https://school.programmers.co.kr/learn/courses/30/lessons/81302

🧭 풀이 시간

25분

👀 체감 난이도

✏️ 문제 설명

각 대기실별로 거리두기를 지키고 있는지 여부 구하기
대기실은 5개이며 크기는 5x5이고, 거리두기를 위해 거리가 2 이하로는 앉히면 안됨
단 파티션으로 막혀 있으면 가능

🔍 풀이 방법

bfs이용
대기실 하나씩 가져와서 사방향에 대해서 확인하되, 파티션으로 막혀 있으면 넘어가고, 아니면 false return

⏳ 회고

예외 잘 처리해서 구현하면 된다

@suyeun84 suyeun84 self-assigned this Oct 10, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Oct 10, 2025
@suyeun84 suyeun84 merged commit 223ffe4 into main Oct 10, 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.

2 participants