結果

問題 No.182 新規性の虜
ユーザー oz4point5
提出日時 2019-03-30 16:51:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 227 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 20,524 KB
最終ジャッジ日時 2024-11-15 19:45:00
合計ジャッジ時間 3,578 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

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