백준 13891 [실버1] 백준 1398 케빈 베이컨의 6단계 법칙 Java 풀이 (bfs, 플로이드-워셜) 플로이드-워셜 방식 풀이package org.practice.플로이드워셜;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;// 실버 1 케빈 베이컨의 6단계 법칙 플로이드 워셜 풀이public class b1389FW { static final int INF = 1000000; static int[][] dist; static int userCount; public static void main(String[] args) throws IOException { BufferedReader br = new .. 2025. 7. 24. 이전 1 다음