結果

問題 No.182 新規性の虜
ユーザー brthyyjpbrthyyjp
提出日時 2020-08-22 05:31:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 111 ms / 5,000 ms
コード長 211 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 104,632 KB
最終ジャッジ日時 2023-08-05 09:20:05
合計ジャッジ時間 4,629 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,468 KB
testcase_01 AC 72 ms
71,484 KB
testcase_02 AC 69 ms
71,132 KB
testcase_03 AC 70 ms
71,272 KB
testcase_04 AC 71 ms
71,308 KB
testcase_05 AC 70 ms
71,304 KB
testcase_06 AC 70 ms
71,428 KB
testcase_07 AC 70 ms
71,156 KB
testcase_08 AC 95 ms
91,352 KB
testcase_09 AC 109 ms
101,964 KB
testcase_10 AC 105 ms
98,720 KB
testcase_11 AC 98 ms
93,616 KB
testcase_12 AC 86 ms
81,460 KB
testcase_13 AC 69 ms
71,184 KB
testcase_14 AC 69 ms
71,448 KB
testcase_15 AC 70 ms
71,212 KB
testcase_16 AC 69 ms
71,088 KB
testcase_17 AC 68 ms
71,268 KB
testcase_18 AC 91 ms
86,888 KB
testcase_19 AC 87 ms
83,284 KB
testcase_20 AC 81 ms
79,936 KB
testcase_21 AC 94 ms
88,524 KB
testcase_22 AC 84 ms
81,400 KB
testcase_23 AC 67 ms
71,128 KB
testcase_24 AC 111 ms
104,632 KB
testcase_25 AC 87 ms
89,092 KB
testcase_26 AC 77 ms
76,756 KB
testcase_27 AC 70 ms
71,208 KB
evil01.txt AC 111 ms
105,628 KB
evil02.txt AC 113 ms
105,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
d = {}
for a in A:
    if a not in d:
        d[a] = 1
    else:
        d[a] += 1

ans = 0
for k, v in d.items():
    if v == 1:
        ans += 1
print(ans)
0