結果
問題 | No.182 新規性の虜 |
ユーザー | _k_a_n_i_ |
提出日時 | 2015-04-23 18:09:41 |
言語 | Java21 (openjdk 21) |
結果 |
TLE
|
実行時間 | - |
コード長 | 832 bytes |
コンパイル時間 | 2,008 ms |
コンパイル使用メモリ | 72,160 KB |
実行使用メモリ | 67,760 KB |
最終ジャッジ日時 | 2023-09-18 08:36:34 |
合計ジャッジ時間 | 31,130 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 119 ms
55,864 KB |
testcase_01 | AC | 120 ms
55,704 KB |
testcase_02 | AC | 119 ms
55,540 KB |
testcase_03 | AC | 124 ms
55,884 KB |
testcase_04 | AC | 121 ms
56,072 KB |
testcase_05 | AC | 124 ms
55,816 KB |
testcase_06 | AC | 123 ms
56,240 KB |
testcase_07 | AC | 125 ms
55,672 KB |
testcase_08 | AC | 2,158 ms
65,040 KB |
testcase_09 | TLE | - |
testcase_10 | AC | 3,821 ms
65,276 KB |
testcase_11 | AC | 2,846 ms
65,124 KB |
testcase_12 | AC | 955 ms
65,196 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 120 ms
56,156 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | AC | 120 ms
56,124 KB |
testcase_24 | TLE | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
evil01.txt | -- | - |
evil02.txt | -- | - |
ソースコード
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { private final static Main main = new Main(); public static void main(String[] args) { long l = System.currentTimeMillis(); main.solve(); //System.out.println("処理時間:" + (System.currentTimeMillis() - l)); } private void solve() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); List<Integer> list = new ArrayList<Integer>(); for(int i=0; i<n; ++i) { int in = sc.nextInt(); if(list.contains(in)) { list.remove((Integer) in); } else { list.add(in); } } System.out.println(list.size()); } }