結果

問題 No.182 新規性の虜
ユーザー トミートミー
提出日時 2024-03-30 21:04:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 299 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 96,196 KB
最終ジャッジ日時 2024-03-30 21:04:43
合計ジャッジ時間 3,058 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,460 KB
testcase_01 AC 34 ms
53,460 KB
testcase_02 AC 34 ms
53,460 KB
testcase_03 AC 33 ms
53,460 KB
testcase_04 AC 34 ms
53,460 KB
testcase_05 AC 34 ms
53,460 KB
testcase_06 AC 33 ms
53,460 KB
testcase_07 AC 33 ms
53,460 KB
testcase_08 AC 60 ms
81,016 KB
testcase_09 AC 77 ms
93,708 KB
testcase_10 AC 70 ms
90,544 KB
testcase_11 AC 64 ms
85,384 KB
testcase_12 AC 48 ms
69,040 KB
testcase_13 AC 34 ms
53,460 KB
testcase_14 AC 35 ms
53,460 KB
testcase_15 AC 35 ms
53,460 KB
testcase_16 AC 35 ms
53,460 KB
testcase_17 AC 35 ms
53,460 KB
testcase_18 AC 57 ms
78,584 KB
testcase_19 AC 52 ms
75,040 KB
testcase_20 AC 49 ms
69,448 KB
testcase_21 AC 59 ms
80,104 KB
testcase_22 AC 51 ms
70,956 KB
testcase_23 AC 34 ms
53,460 KB
testcase_24 AC 74 ms
96,196 KB
testcase_25 AC 55 ms
78,592 KB
testcase_26 AC 43 ms
64,468 KB
testcase_27 AC 35 ms
53,460 KB
evil01.txt AC 78 ms
99,420 KB
evil02.txt AC 80 ms
99,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n=int(input())
    a=list(map(int,input().split()))
    d={}
    for i in a:
        if i in d:
            d[i]+=1
        else:
            d[i]=1
    cnt=0
    for i in d:
        if d[i]==1:
            cnt+=1
    print(cnt)
            
    

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