結果

問題 No.182 新規性の虜
ユーザー HIROPON87069639
提出日時 2016-02-14 00:22:50
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 275 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 15,052 KB
最終ジャッジ日時 2024-09-22 06:18:55
合計ジャッジ時間 2,868 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
Alist = []
Alist = map(int, raw_input().split())
Alist.sort()
cnt = 0
for i in range(1, N-1):
    if Alist[i-1] != Alist[i] and Alist[i] != Alist[i+1]:
        cnt = cnt + 1
if Alist[0] != Alist[1]:
    cnt += 1
if Alist[N-2] != Alist[N-1]:
    cnt += 1
print cnt
0