結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
kenji_shioya
|
| 提出日時 | 2016-06-20 22:23:11 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 437 ms / 5,000 ms |
| コード長 | 563 bytes |
| 記録 | |
| コンパイル時間 | 3,049 ms |
| コンパイル使用メモリ | 83,240 KB |
| 実行使用メモリ | 57,572 KB |
| 最終ジャッジ日時 | 2026-06-01 22:06:24 |
| 合計ジャッジ時間 | 9,804 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
import java.util.*;
public class Exercise102{
public static void main (String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
HashMap<Integer, Boolean> map = new HashMap<Integer, Boolean>();
for(int i = 0; i < n; i++){
int x = sc.nextInt();
if(map.containsKey(x)){
map.put(x, false);
}else{
map.put(x, true);
}
}
int count = 0;
for(Map.Entry<Integer, Boolean> e:map.entrySet()){
if(e.getValue()){
count++;
}
}
System.out.println(count);
}
}
kenji_shioya