매일코테/못 푼 문제 7

백준 12단계 no.4

문제에서 제시한 입력으로 출력은 알맞게 나오는데 틀렸다고 한다. 그 이유를 모름 public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = sc.nextInt(); } int m = sc.nextInt(); Map map = new LinkedHashMap(); for(int i = 0; i < m; i++) { map.put(sc.nextInt(), 0); } for (int j : arr) { if (map.containsKey(j)) { map.put(j, map.get..