Skip to content

Conversation

@suyeun84
Copy link
Contributor

@suyeun84 suyeun84 commented Sep 8, 2025

🧷 문제 링크

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

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

두 팀으로 나누어서 게임을 진행하는데, 상대 팀 진영을 먼저 파괴하면 이기는 게임
캐릭터가 상대 팀 진영에 도착하기 위해서 지나가야 하는 칸의 개수의 최솟값 구하기

🔍 풀이 방법

bfs이용
visit 했는지 여부 확인하고, 상대 팀 진영 좌표가 처음 나올 때가 지나가야 하는 칸 개수의 최솟값임

⏳ 회고

기본 bfs다

@suyeun84 suyeun84 self-assigned this Sep 8, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Sep 8, 2025
@suyeun84 suyeun84 merged commit 591db46 into main Sep 8, 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