結果

問題 No.182 新規性の虜
ユーザー GrayCoderGrayCoder
提出日時 2017-10-09 08:12:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 247 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 22,928 KB
最終ジャッジ日時 2023-08-27 16:40:28
合計ジャッジ時間 2,366 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,944 KB
testcase_01 AC 16 ms
7,904 KB
testcase_02 AC 16 ms
7,816 KB
testcase_03 AC 16 ms
7,872 KB
testcase_04 AC 16 ms
7,968 KB
testcase_05 AC 16 ms
7,784 KB
testcase_06 AC 15 ms
7,832 KB
testcase_07 AC 15 ms
7,864 KB
testcase_08 AC 42 ms
16,700 KB
testcase_09 AC 59 ms
18,544 KB
testcase_10 AC 54 ms
18,436 KB
testcase_11 AC 47 ms
18,324 KB
testcase_12 AC 29 ms
12,656 KB
testcase_13 AC 15 ms
7,764 KB
testcase_14 AC 16 ms
7,900 KB
testcase_15 AC 16 ms
7,844 KB
testcase_16 AC 15 ms
7,924 KB
testcase_17 AC 16 ms
7,800 KB
testcase_18 AC 46 ms
16,464 KB
testcase_19 AC 37 ms
14,268 KB
testcase_20 AC 28 ms
12,052 KB
testcase_21 AC 51 ms
17,640 KB
testcase_22 AC 33 ms
12,584 KB
testcase_23 AC 15 ms
7,904 KB
testcase_24 AC 64 ms
22,928 KB
testcase_25 AC 41 ms
9,904 KB
testcase_26 AC 20 ms
9,816 KB
testcase_27 AC 16 ms
7,848 KB
evil01.txt AC 66 ms
23,260 KB
evil02.txt AC 71 ms
23,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    A = tuple(map(int, input().split()))

    num = dict()
    for i in A:
        num[i] = num.get(i, 0) + 1

    ans = 0
    for i in num.values():
        if i == 1:
            ans += 1

    print(ans)

main()
0