結果

問題 No.182 新規性の虜
ユーザー maguroguma
提出日時 2017-08-27 14:47:08
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 113 ms / 5,000 ms
コード長 243 bytes
コンパイル時間 536 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 24,412 KB
最終ジャッジ日時 2024-12-27 19:06:43
合計ジャッジ時間 3,690 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

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

dict = {}
for a in A:
    if a in dict:
        dict[a] += 1
    else:
        dict[a] = 1

ans = 0
for key in dict:
    ans += 1 if dict[key]==1 else 0

print(ans)
0