結果

問題 No.182 新規性の虜
ユーザー lam6er
提出日時 2025-03-20 12:48:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 5,000 ms
コード長 268 bytes
コンパイル時間 559 ms
コンパイル使用メモリ 82,592 KB
実行使用メモリ 101,128 KB
最終ジャッジ日時 2025-03-20 12:48:27
合計ジャッジ時間 3,667 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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