結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-08 14:59:19 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 194 bytes |
| 記録 | |
| コンパイル時間 | 585 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 24,696 KB |
| 最終ジャッジ日時 | 2026-05-08 14:59:31 |
| 合計ジャッジ時間 | 11,634 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 27 |
ソースコード
N = int(input()) A = list(map(int, input().split())) i = 0 n = 0 while i < N-1: if A[i] != A[i+1]: n += 1 if i > 0 and A[i] == A[i-1]: n -= 1 i += 1 if A[N] != A[N-1]: n+= 1 print(n)