結果

問題 No.182 新規性の虜
ユーザー pofpof
提出日時 2019-06-23 22:12:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 107 ms / 5,000 ms
コード長 237 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 19,436 KB
最終ジャッジ日時 2023-08-28 12:50:22
合計ジャッジ時間 3,616 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,900 KB
testcase_01 AC 16 ms
7,852 KB
testcase_02 AC 16 ms
7,812 KB
testcase_03 AC 15 ms
7,796 KB
testcase_04 AC 15 ms
7,924 KB
testcase_05 AC 16 ms
7,952 KB
testcase_06 AC 15 ms
7,848 KB
testcase_07 AC 16 ms
7,960 KB
testcase_08 AC 71 ms
13,716 KB
testcase_09 AC 107 ms
17,344 KB
testcase_10 AC 94 ms
15,984 KB
testcase_11 AC 79 ms
14,408 KB
testcase_12 AC 42 ms
10,696 KB
testcase_13 AC 16 ms
7,980 KB
testcase_14 AC 16 ms
7,820 KB
testcase_15 AC 16 ms
7,964 KB
testcase_16 AC 16 ms
7,800 KB
testcase_17 AC 16 ms
7,960 KB
testcase_18 AC 74 ms
16,464 KB
testcase_19 AC 57 ms
14,160 KB
testcase_20 AC 39 ms
11,508 KB
testcase_21 AC 82 ms
17,676 KB
testcase_22 AC 46 ms
12,780 KB
testcase_23 AC 16 ms
7,792 KB
testcase_24 AC 94 ms
19,436 KB
testcase_25 AC 54 ms
10,080 KB
testcase_26 AC 27 ms
9,308 KB
testcase_27 AC 15 ms
7,824 KB
evil01.txt AC 95 ms
18,888 KB
evil02.txt AC 97 ms
18,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

cnt=0
for i in range(n):
    if i != 0:
        if a[i] == a[i-1]:
            continue
    if i != n-1:
        if a[i] == a[i+1]:
            continue
    cnt+=1

print(cnt)
0