結果

問題 No.182 新規性の虜
ユーザー 👑 rin204rin204
提出日時 2020-09-08 07:13:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 111 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 19,760 KB
最終ジャッジ日時 2023-08-19 17:31:44
合計ジャッジ時間 3,337 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,724 KB
testcase_01 AC 15 ms
7,728 KB
testcase_02 AC 16 ms
7,864 KB
testcase_03 AC 16 ms
7,920 KB
testcase_04 AC 16 ms
7,856 KB
testcase_05 AC 16 ms
7,820 KB
testcase_06 AC 17 ms
7,756 KB
testcase_07 AC 16 ms
7,884 KB
testcase_08 AC 72 ms
13,668 KB
testcase_09 AC 111 ms
17,332 KB
testcase_10 AC 97 ms
16,008 KB
testcase_11 AC 79 ms
14,368 KB
testcase_12 AC 42 ms
10,812 KB
testcase_13 AC 15 ms
7,736 KB
testcase_14 AC 16 ms
7,736 KB
testcase_15 AC 16 ms
7,852 KB
testcase_16 AC 15 ms
7,892 KB
testcase_17 AC 15 ms
7,888 KB
testcase_18 AC 78 ms
16,464 KB
testcase_19 AC 60 ms
13,992 KB
testcase_20 AC 41 ms
11,456 KB
testcase_21 AC 87 ms
17,452 KB
testcase_22 AC 49 ms
12,772 KB
testcase_23 AC 15 ms
7,796 KB
testcase_24 AC 88 ms
19,760 KB
testcase_25 AC 53 ms
10,048 KB
testcase_26 AC 26 ms
9,252 KB
testcase_27 AC 16 ms
7,916 KB
evil01.txt AC 86 ms
18,764 KB
evil02.txt AC 87 ms
18,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
alst = list(map(int, input().split())) + [0, 10 ** 10]
alst.sort()
ans = 0
for i in range(1, n + 1):
    if alst[i] != alst[i - 1] and alst[i] != alst[i + 1]:
        ans += 1
print(ans)
0