結果

問題 No.182 新規性の虜
ユーザー AoiroFukurouAoiroFukurou
提出日時 2016-07-10 15:30:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 692 ms / 5,000 ms
コード長 568 bytes
コンパイル時間 4,099 ms
コンパイル使用メモリ 72,636 KB
実行使用メモリ 65,020 KB
最終ジャッジ日時 2023-08-27 11:54:33
合計ジャッジ時間 15,850 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,708 KB
testcase_01 AC 124 ms
55,976 KB
testcase_02 AC 124 ms
55,996 KB
testcase_03 AC 126 ms
55,472 KB
testcase_04 AC 127 ms
55,592 KB
testcase_05 AC 130 ms
55,764 KB
testcase_06 AC 124 ms
55,680 KB
testcase_07 AC 128 ms
56,048 KB
testcase_08 AC 543 ms
63,420 KB
testcase_09 AC 692 ms
65,016 KB
testcase_10 AC 615 ms
65,020 KB
testcase_11 AC 609 ms
63,028 KB
testcase_12 AC 412 ms
60,736 KB
testcase_13 AC 126 ms
55,612 KB
testcase_14 AC 128 ms
53,740 KB
testcase_15 AC 125 ms
56,032 KB
testcase_16 AC 127 ms
55,988 KB
testcase_17 AC 126 ms
56,092 KB
testcase_18 AC 533 ms
60,792 KB
testcase_19 AC 446 ms
60,216 KB
testcase_20 AC 393 ms
60,348 KB
testcase_21 AC 533 ms
60,400 KB
testcase_22 AC 387 ms
60,212 KB
testcase_23 AC 122 ms
56,008 KB
testcase_24 AC 593 ms
64,872 KB
testcase_25 AC 501 ms
60,524 KB
testcase_26 AC 293 ms
59,876 KB
testcase_27 AC 124 ms
55,996 KB
evil01.txt AC 676 ms
67,404 KB
evil02.txt AC 688 ms
68,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package b20160710;

import java.util.HashMap;
import java.util.Scanner;

public class No_182 {
	public static void main(String[] args) {
		HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for (int i = 0; i < N; i++) {
			int A = sc.nextInt();
			if (map.containsKey(A)) {
				int mp = map.get(A) + 1;
				map.put(A, mp);
			} else {
				map.put(A, 1);
			}
		}
		int c = 0;
		for (Integer key : map.keySet()) {
			if (map.get(key) == 1) {
				c++;
			}
		}
		System.out.println(c);
	}
}
0