백준 문제풀이 (실버 2)
1. 촌수계산(2644)👉 소스코드public class Main { static int total, personA, personB, person; static int result = -1; static int[][] graph; static int[] dist; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); total = Integer.parseInt(br.readLine()); StringTokenizer st = new StringTokenizer(br.readLine()); personA ..
2023.01.30