結果

問題 No.182 新規性の虜
ユーザー turner18_jpturner18_jp
提出日時 2017-10-02 01:29:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 246 bytes
コンパイル時間 702 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 22,300 KB
最終ジャッジ日時 2023-08-27 16:38:54
合計ジャッジ時間 2,253 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,896 KB
testcase_01 AC 15 ms
7,988 KB
testcase_02 AC 14 ms
7,840 KB
testcase_03 AC 14 ms
7,896 KB
testcase_04 AC 14 ms
7,804 KB
testcase_05 AC 14 ms
7,876 KB
testcase_06 AC 14 ms
7,836 KB
testcase_07 AC 13 ms
7,860 KB
testcase_08 AC 47 ms
16,756 KB
testcase_09 AC 64 ms
18,684 KB
testcase_10 AC 58 ms
18,456 KB
testcase_11 AC 57 ms
18,304 KB
testcase_12 AC 30 ms
12,744 KB
testcase_13 AC 14 ms
7,848 KB
testcase_14 AC 15 ms
7,848 KB
testcase_15 AC 14 ms
7,876 KB
testcase_16 AC 14 ms
7,904 KB
testcase_17 AC 13 ms
7,840 KB
testcase_18 AC 61 ms
16,352 KB
testcase_19 AC 46 ms
14,152 KB
testcase_20 AC 32 ms
12,008 KB
testcase_21 AC 69 ms
17,464 KB
testcase_22 AC 38 ms
12,732 KB
testcase_23 AC 13 ms
7,876 KB
testcase_24 AC 71 ms
22,300 KB
testcase_25 AC 62 ms
9,880 KB
testcase_26 AC 19 ms
9,792 KB
testcase_27 AC 14 ms
7,892 KB
evil01.txt AC 71 ms
23,112 KB
evil02.txt AC 76 ms
23,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
nums = list(map(int, input().split()))
li = {}
count = 0

for i in nums:
    if not i in li:
        li[i] = 1
    else:
        li[i] = int(li[i]) + 1

for value in li.values():
    if value == 1:
        count += 1
print(count)
0