結果

問題 No.182 新規性の虜
ユーザー wesoweeenwesoweeen
提出日時 2021-08-27 00:30:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 25,324 KB
最終ジャッジ日時 2024-04-29 17:49:50
合計ジャッジ時間 2,728 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,624 KB
testcase_01 AC 28 ms
10,496 KB
testcase_02 AC 28 ms
10,496 KB
testcase_03 AC 27 ms
10,368 KB
testcase_04 AC 28 ms
10,496 KB
testcase_05 AC 28 ms
10,624 KB
testcase_06 AC 29 ms
10,368 KB
testcase_07 AC 29 ms
10,496 KB
testcase_08 AC 55 ms
19,332 KB
testcase_09 AC 73 ms
21,112 KB
testcase_10 AC 66 ms
20,008 KB
testcase_11 AC 58 ms
19,756 KB
testcase_12 AC 42 ms
15,400 KB
testcase_13 AC 28 ms
10,496 KB
testcase_14 AC 29 ms
10,496 KB
testcase_15 AC 29 ms
10,496 KB
testcase_16 AC 28 ms
10,624 KB
testcase_17 AC 28 ms
10,496 KB
testcase_18 AC 60 ms
18,268 KB
testcase_19 AC 53 ms
16,124 KB
testcase_20 AC 41 ms
13,824 KB
testcase_21 AC 65 ms
19,216 KB
testcase_22 AC 46 ms
14,784 KB
testcase_23 AC 29 ms
10,624 KB
testcase_24 AC 75 ms
25,324 KB
testcase_25 AC 54 ms
12,480 KB
testcase_26 AC 34 ms
12,288 KB
testcase_27 AC 30 ms
10,624 KB
evil01.txt AC 80 ms
25,800 KB
evil02.txt AC 82 ms
25,736 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