Naver Blog
백준1389 - 케빈 베이컨의 6단계 법칙
https://www.acmicpc.net/problem/1389플루이드 와샬을 이용하면 쉽게 풀리는 문제이다.x와 y가 친구 사이...