結果

問題 No.182 新規性の虜
ユーザー MitI_7MitI_7
提出日時 2015-10-31 16:34:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 73 ms / 5,000 ms
コード長 256 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 21,976 KB
最終ジャッジ日時 2023-08-27 07:35:55
合計ジャッジ時間 2,441 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,372 KB
testcase_01 AC 19 ms
8,408 KB
testcase_02 AC 18 ms
8,604 KB
testcase_03 AC 18 ms
8,428 KB
testcase_04 AC 19 ms
8,460 KB
testcase_05 AC 19 ms
8,504 KB
testcase_06 AC 19 ms
8,592 KB
testcase_07 AC 19 ms
8,448 KB
testcase_08 AC 47 ms
15,584 KB
testcase_09 AC 66 ms
17,808 KB
testcase_10 AC 57 ms
17,116 KB
testcase_11 AC 51 ms
16,100 KB
testcase_12 AC 32 ms
11,736 KB
testcase_13 AC 19 ms
8,472 KB
testcase_14 AC 18 ms
8,620 KB
testcase_15 AC 19 ms
8,420 KB
testcase_16 AC 18 ms
8,440 KB
testcase_17 AC 19 ms
8,532 KB
testcase_18 AC 42 ms
14,352 KB
testcase_19 AC 35 ms
12,436 KB
testcase_20 AC 29 ms
11,028 KB
testcase_21 AC 45 ms
14,796 KB
testcase_22 AC 32 ms
11,644 KB
testcase_23 AC 18 ms
8,580 KB
testcase_24 AC 73 ms
21,976 KB
testcase_25 AC 30 ms
9,692 KB
testcase_26 AC 24 ms
9,708 KB
testcase_27 AC 19 ms
8,524 KB
evil01.txt AC 75 ms
22,728 KB
evil02.txt AC 77 ms
22,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict


def main():
    n = int(input())
    a = input().split()
    d = defaultdict(int)

    for i in a:
        d[i] += 1

    print(len([k for k, d in d.items() if d == 1]))
    
    
if __name__ == '__main__':
    main()
0