結果

問題 No.182 新規性の虜
ユーザー nyankologynyankology
提出日時 2018-11-29 21:54:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 103 ms / 5,000 ms
コード長 237 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 20,076 KB
最終ジャッジ日時 2023-09-09 05:56:50
合計ジャッジ時間 3,284 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,928 KB
testcase_01 AC 15 ms
7,748 KB
testcase_02 AC 15 ms
7,676 KB
testcase_03 AC 15 ms
7,916 KB
testcase_04 AC 16 ms
7,844 KB
testcase_05 AC 15 ms
7,724 KB
testcase_06 AC 16 ms
7,812 KB
testcase_07 AC 15 ms
7,768 KB
testcase_08 AC 67 ms
14,384 KB
testcase_09 AC 103 ms
18,212 KB
testcase_10 AC 91 ms
17,012 KB
testcase_11 AC 80 ms
15,380 KB
testcase_12 AC 41 ms
10,932 KB
testcase_13 AC 15 ms
7,748 KB
testcase_14 AC 16 ms
7,744 KB
testcase_15 AC 15 ms
7,808 KB
testcase_16 AC 16 ms
7,872 KB
testcase_17 AC 16 ms
7,736 KB
testcase_18 AC 74 ms
16,668 KB
testcase_19 AC 56 ms
14,244 KB
testcase_20 AC 41 ms
11,756 KB
testcase_21 AC 80 ms
18,024 KB
testcase_22 AC 46 ms
12,708 KB
testcase_23 AC 16 ms
7,820 KB
testcase_24 AC 93 ms
20,076 KB
testcase_25 AC 54 ms
9,992 KB
testcase_26 AC 26 ms
9,428 KB
testcase_27 AC 15 ms
7,808 KB
evil01.txt AC 92 ms
19,940 KB
evil02.txt AC 92 ms
19,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
f = input()
s_f = f.split()
num = [int(v) for v in s_f]
num.sort()
num.append(pow(10,9) + 1)
num.insert(0,0)
i = 0
for v in range(1, N + 1):
    if num[v - 1] != num[v] and num[v] != num[v + 1]:
        i += 1

print(i)
0