문제https://www.acmicpc.net/problem/1058풀이(21분)import java.io.*;import java.util.*;public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); boolean[][] friend = new boolean[n][n]; HashMap> map = new HashMap(); for(int i = 0; i..