結果

問題 No.182 新規性の虜
ユーザー yurara
提出日時 2019-05-19 00:03:31
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 231 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 27,228 KB
最終ジャッジ日時 2024-09-17 06:24:54
合計ジャッジ時間 3,006 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict

_ = input()
A = list(map(int, input().split()))

counts = defaultdict()
counts.default_factory = int

for a in A:
    counts[a] += 1
print(len(list(filter(lambda x: x[1] == 1, counts.items()))))
0