結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
r.suzuki
|
| 提出日時 | 2015-12-28 22:38:25 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 503 bytes |
| 記録 | |
| コンパイル時間 | 2,835 ms |
| コンパイル使用メモリ | 83,660 KB |
| 実行使用メモリ | 68,232 KB |
| 最終ジャッジ日時 | 2026-04-07 16:40:59 |
| 合計ジャッジ時間 | 15,430 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 TLE * 2 -- * 20 |
ソースコード
public class No_182 {
public static void main(String[] args) {
java.util.LinkedList<Integer> list = new java.util.LinkedList<Integer>();
java.util.Scanner sc = new java.util.Scanner(System.in);
int n = sc.nextInt();
int count = 0;
for (int i = 0; i < n; i++) {
list.add(sc.nextInt());
}
while (!list.isEmpty()) {
Integer x = list.poll();
if (!list.contains(x)) {
count++;
} else {
while (list.remove(x)) {}
}
}
System.out.println(count);
sc.close();
}
}
r.suzuki