코테
[백준 / Java] 1167번 : 트리의 지름
https://www.acmicpc.net/problem/1167 ◎ 문제◎ 코드 및 풀이첫번째 풀이import java.util.*;import java.io.*;public class Main { static int[][] arr; static boolean[] visit; static int n,max,total; public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); n = Integer.parseInt(s..
2024. 5. 1. 17:50