[20250625] BOJ / G1 / 구슬 탈출 2 / 이강현 #386
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/13460
🧭 풀이 시간
90분
👀 체감 난이도
✏️ 문제 설명
빨간 구슬, 파란 구슬이 하나씩 보드에 있고 구멍이 있을 때, 빨간 구슬만 구멍에 최소 횟수로 이동시켜 넣는 방법 구하기.
🔍 풀이 방법
BFS, 시뮬레이션
방문 체크를 빨간 구슬과 파란 구슬의 좌표를 모두 사용해서 하는점.
동시에 움직이게끔 하여 충돌하였을때 좌표를 재조정해야 하는 점이 핵심.
⏳ 회고
구현 문제는 항상 어려워