import java.util.HashMap;import java.util.Map;import java.util.Scanner;public class BJ17219 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); //사이트수 int M = sc.nextInt(); //비밀번호 사이트 주소 sc.nextLine(); //사이트주소 + 비밀번호 저장 mapping Map map = new HashMap(); //입력 for (int i = 0; i map을 사용한다면 간..