Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

노드의 개수 N과 거리를 알고 싶은 노드 쌍의 개수 M이 입력되고,
연결된 두 점과 거리를 입력 받을 때, M개의 줄에 입력받은 두 노드 사이의 거리 출력하기

🔍 풀이 방법

dfs로 방문 여부 체크하면서 거리를 구함

⏳ 회고

쉬운 dfs..

@suyeun84 suyeun84 self-assigned this Jul 23, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Jul 23, 2025
@ShinHeeEul ShinHeeEul merged commit 6b67a91 into main Jul 23, 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