Skip to content

Conversation

@Seol-JY
Copy link
Contributor

@Seol-JY Seol-JY commented Nov 17, 2025

🧷 문제 링크

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

🧭 풀이 시간

15분

👀 체감 난이도

✏️ 문제 설명

N개의 노드로 이루어진 트리에서 M개의 노드 쌍에 대해 두 노드 사이의 거리를 구하는 문제

🔍 풀이 방법

각 쿼리마다 BFS를 수행하여 시작 노드에서 목표 노드까지의 거리 계산

⏳ 회고

쉬워서 짜증

@ShinHeeEul ShinHeeEul merged commit f53925f into main Nov 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants