結果

問題 No.182 新規性の虜
ユーザー lam6er
提出日時 2025-03-20 18:40:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 268 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 100,528 KB
最終ジャッジ日時 2025-03-20 18:40:16
合計ジャッジ時間 3,095 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from collections import Counter

def main():
    n = int(sys.stdin.readline())
    a = list(map(int, sys.stdin.readline().split()))
    count = Counter(a)
    res = sum(1 for num in a if count[num] == 1)
    print(res)

if __name__ == "__main__":
    main()
0