結果

問題 No.182 新規性の虜
ユーザー ohana
提出日時 2023-10-23 11:47:59
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 169 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 81,848 KB
実行使用メモリ 89,272 KB
最終ジャッジ日時 2024-09-22 10:02:55
合計ジャッジ時間 3,251 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

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

cnt = 0

for k, g in itertools.groupby(A):
    if len(list(g)) == 1:
        cnt += 1
print(cnt)
0