結果

問題 No.182 新規性の虜
ユーザー fal_rndfal_rnd
提出日時 2017-08-08 18:16:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 593 ms / 5,000 ms
コード長 518 bytes
コンパイル時間 3,667 ms
コンパイル使用メモリ 85,816 KB
実行使用メモリ 66,396 KB
最終ジャッジ日時 2023-08-27 16:01:27
合計ジャッジ時間 13,240 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,700 KB
testcase_01 AC 125 ms
55,416 KB
testcase_02 AC 125 ms
55,428 KB
testcase_03 AC 127 ms
55,752 KB
testcase_04 AC 126 ms
55,492 KB
testcase_05 AC 129 ms
55,780 KB
testcase_06 AC 127 ms
56,468 KB
testcase_07 AC 128 ms
54,000 KB
testcase_08 AC 498 ms
63,472 KB
testcase_09 AC 593 ms
65,916 KB
testcase_10 AC 569 ms
66,396 KB
testcase_11 AC 535 ms
64,228 KB
testcase_12 AC 336 ms
60,720 KB
testcase_13 AC 127 ms
55,900 KB
testcase_14 AC 128 ms
56,056 KB
testcase_15 AC 125 ms
55,828 KB
testcase_16 AC 126 ms
55,772 KB
testcase_17 AC 129 ms
55,492 KB
testcase_18 AC 406 ms
60,872 KB
testcase_19 AC 356 ms
61,132 KB
testcase_20 AC 301 ms
60,264 KB
testcase_21 AC 431 ms
61,220 KB
testcase_22 AC 324 ms
60,300 KB
testcase_23 AC 123 ms
55,644 KB
testcase_24 AC 474 ms
65,124 KB
testcase_25 AC 380 ms
60,668 KB
testcase_26 AC 245 ms
60,140 KB
testcase_27 AC 124 ms
56,128 KB
evil01.txt AC 608 ms
65,964 KB
evil02.txt AC 618 ms
66,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.IntStream;
class M{
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream INS(int n) {return REPS(n).map(i->getInt());}
	public static void main(String[]$){
		HashMap<Integer,Integer>hm=new HashMap<>();
		INS(getInt()).forEach(i->hm.merge(i,1,Integer::sum));
		System.out.println(
				hm.values().stream()
				.filter(i->i==1)
				.count()
				);
	}
}
0