結果

問題 No.182 新規性の虜
ユーザー wesoweeenwesoweeen
提出日時 2021-08-27 00:30:32
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 22,364 KB
最終ジャッジ日時 2023-08-12 03:15:52
合計ジャッジ時間 2,792 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,812 KB
testcase_01 AC 15 ms
7,808 KB
testcase_02 AC 15 ms
7,864 KB
testcase_03 AC 15 ms
7,772 KB
testcase_04 AC 16 ms
7,796 KB
testcase_05 AC 15 ms
7,740 KB
testcase_06 AC 15 ms
7,828 KB
testcase_07 AC 15 ms
7,836 KB
testcase_08 AC 40 ms
16,676 KB
testcase_09 AC 54 ms
18,076 KB
testcase_10 AC 49 ms
18,316 KB
testcase_11 AC 43 ms
18,152 KB
testcase_12 AC 27 ms
12,664 KB
testcase_13 AC 14 ms
7,760 KB
testcase_14 AC 15 ms
7,756 KB
testcase_15 AC 15 ms
7,812 KB
testcase_16 AC 15 ms
7,756 KB
testcase_17 AC 15 ms
7,728 KB
testcase_18 AC 41 ms
16,584 KB
testcase_19 AC 35 ms
14,408 KB
testcase_20 AC 29 ms
11,764 KB
testcase_21 AC 48 ms
18,076 KB
testcase_22 AC 31 ms
12,640 KB
testcase_23 AC 15 ms
7,840 KB
testcase_24 AC 54 ms
22,364 KB
testcase_25 AC 36 ms
9,976 KB
testcase_26 AC 19 ms
9,676 KB
testcase_27 AC 16 ms
7,812 KB
evil01.txt AC 57 ms
22,992 KB
evil02.txt AC 62 ms
23,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    A = input()
    A = list(map(int, A.split()))
    d = {}

    for a in A:
        d[a] = a not in d
    print(sum(d.values()))


if __name__ == "__main__":
    main()
0