結果

問題 No.182 新規性の虜
ユーザー magurogumamaguroguma
提出日時 2017-08-27 14:47:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 243 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 22,352 KB
最終ジャッジ日時 2023-08-27 16:29:33
合計ジャッジ時間 2,341 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,804 KB
testcase_01 AC 13 ms
7,880 KB
testcase_02 AC 13 ms
7,888 KB
testcase_03 AC 13 ms
7,728 KB
testcase_04 AC 13 ms
7,824 KB
testcase_05 AC 13 ms
7,840 KB
testcase_06 AC 14 ms
7,812 KB
testcase_07 AC 14 ms
7,892 KB
testcase_08 AC 51 ms
16,732 KB
testcase_09 AC 74 ms
18,480 KB
testcase_10 AC 64 ms
18,200 KB
testcase_11 AC 59 ms
18,132 KB
testcase_12 AC 30 ms
12,660 KB
testcase_13 AC 13 ms
7,960 KB
testcase_14 AC 14 ms
7,800 KB
testcase_15 AC 13 ms
7,772 KB
testcase_16 AC 13 ms
7,948 KB
testcase_17 AC 14 ms
7,840 KB
testcase_18 AC 52 ms
16,324 KB
testcase_19 AC 41 ms
14,116 KB
testcase_20 AC 31 ms
11,932 KB
testcase_21 AC 59 ms
17,428 KB
testcase_22 AC 37 ms
12,720 KB
testcase_23 AC 13 ms
7,812 KB
testcase_24 AC 73 ms
22,352 KB
testcase_25 AC 47 ms
9,896 KB
testcase_26 AC 20 ms
9,736 KB
testcase_27 AC 14 ms
7,828 KB
evil01.txt AC 81 ms
23,120 KB
evil02.txt AC 82 ms
23,068 KB
権限があれば一括ダウンロードができます

ソースコード

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