結果

問題 No.182 新規性の虜
ユーザー matriematrie
提出日時 2020-11-30 09:43:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 92 ms / 5,000 ms
コード長 141 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 19,604 KB
最終ジャッジ日時 2023-10-11 02:45:50
合計ジャッジ時間 2,738 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,796 KB
testcase_01 AC 15 ms
7,776 KB
testcase_02 AC 16 ms
7,956 KB
testcase_03 AC 16 ms
7,956 KB
testcase_04 AC 15 ms
7,912 KB
testcase_05 AC 16 ms
7,840 KB
testcase_06 AC 15 ms
7,776 KB
testcase_07 AC 15 ms
7,800 KB
testcase_08 AC 61 ms
13,596 KB
testcase_09 AC 92 ms
17,244 KB
testcase_10 AC 81 ms
15,892 KB
testcase_11 AC 69 ms
14,468 KB
testcase_12 AC 37 ms
11,032 KB
testcase_13 AC 15 ms
7,852 KB
testcase_14 AC 15 ms
7,788 KB
testcase_15 AC 15 ms
7,860 KB
testcase_16 AC 16 ms
7,856 KB
testcase_17 AC 15 ms
7,916 KB
testcase_18 AC 69 ms
16,384 KB
testcase_19 AC 53 ms
14,044 KB
testcase_20 AC 38 ms
11,796 KB
testcase_21 AC 76 ms
17,504 KB
testcase_22 AC 45 ms
12,704 KB
testcase_23 AC 15 ms
7,796 KB
testcase_24 AC 80 ms
19,604 KB
testcase_25 AC 53 ms
10,220 KB
testcase_26 AC 25 ms
9,388 KB
testcase_27 AC 15 ms
7,800 KB
evil01.txt AC 81 ms
18,928 KB
evil02.txt AC 81 ms
18,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
l = [0]+sorted(list(map(int, input().split())))+[10**9+1]
c = 0
for i in range(1,n+1):
	if l[i-1]<l[i]<l[i+1]: c+=1
print(c)
0