結果

問題 No.182 新規性の虜
ユーザー compass19compass19
提出日時 2016-12-31 14:18:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 69 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 22,276 KB
最終ジャッジ日時 2023-08-27 14:26:23
合計ジャッジ時間 2,427 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,940 KB
testcase_01 AC 15 ms
7,776 KB
testcase_02 AC 14 ms
7,892 KB
testcase_03 AC 14 ms
7,772 KB
testcase_04 AC 14 ms
7,888 KB
testcase_05 AC 14 ms
7,784 KB
testcase_06 AC 14 ms
7,944 KB
testcase_07 AC 14 ms
7,852 KB
testcase_08 AC 46 ms
16,648 KB
testcase_09 AC 62 ms
18,652 KB
testcase_10 AC 58 ms
18,384 KB
testcase_11 AC 51 ms
18,120 KB
testcase_12 AC 30 ms
12,696 KB
testcase_13 AC 14 ms
7,824 KB
testcase_14 AC 14 ms
7,936 KB
testcase_15 AC 13 ms
7,884 KB
testcase_16 AC 14 ms
7,776 KB
testcase_17 AC 15 ms
7,788 KB
testcase_18 AC 55 ms
16,328 KB
testcase_19 AC 41 ms
14,004 KB
testcase_20 AC 29 ms
11,904 KB
testcase_21 AC 56 ms
17,504 KB
testcase_22 AC 37 ms
12,620 KB
testcase_23 AC 15 ms
7,772 KB
testcase_24 AC 69 ms
22,276 KB
testcase_25 AC 43 ms
9,860 KB
testcase_26 AC 20 ms
9,728 KB
testcase_27 AC 14 ms
7,812 KB
evil01.txt AC 71 ms
23,108 KB
evil02.txt AC 77 ms
23,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

input()
a = list(map(int, input().split()))
dic = dict()
ans = 0
for i in a:
	if i in dic:
		if dic[i]:
			ans -= 1
			dic[i] = False
	else:
		dic[i] = True
		ans += 1
print(ans)
0