結果

問題 No.182 新規性の虜
ユーザー oz4point5oz4point5
提出日時 2019-03-30 16:51:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 96 ms / 5,000 ms
コード長 227 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 19,708 KB
最終ジャッジ日時 2023-08-09 21:49:13
合計ジャッジ時間 2,996 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,820 KB
testcase_01 AC 15 ms
7,808 KB
testcase_02 AC 15 ms
7,956 KB
testcase_03 AC 15 ms
7,816 KB
testcase_04 AC 15 ms
7,872 KB
testcase_05 AC 15 ms
7,928 KB
testcase_06 AC 15 ms
7,936 KB
testcase_07 AC 15 ms
7,820 KB
testcase_08 AC 65 ms
13,572 KB
testcase_09 AC 96 ms
17,304 KB
testcase_10 AC 85 ms
15,852 KB
testcase_11 AC 71 ms
14,360 KB
testcase_12 AC 38 ms
10,940 KB
testcase_13 AC 15 ms
7,940 KB
testcase_14 AC 16 ms
7,948 KB
testcase_15 AC 15 ms
7,804 KB
testcase_16 AC 15 ms
7,972 KB
testcase_17 AC 15 ms
7,856 KB
testcase_18 AC 67 ms
16,520 KB
testcase_19 AC 51 ms
14,144 KB
testcase_20 AC 37 ms
11,628 KB
testcase_21 AC 75 ms
17,428 KB
testcase_22 AC 43 ms
12,792 KB
testcase_23 AC 15 ms
7,924 KB
testcase_24 AC 83 ms
19,708 KB
testcase_25 AC 50 ms
10,248 KB
testcase_26 AC 24 ms
9,396 KB
testcase_27 AC 15 ms
7,944 KB
evil01.txt AC 86 ms
18,952 KB
evil02.txt AC 86 ms
18,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

n = int(input())
a = list(map(int,input().split()))

a.sort()

a = ["x"] + a + ["x"]
new = []

for i in range(1,n+1):
    if a[i] != a[i-1] and a[i] != a[i+1]:
        new.append(a[i])

print(len(new))
0