結果
| 問題 |
No.3067 +10 Seconds Clock
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 20:56:31 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 199 bytes |
| コンパイル時間 | 807 ms |
| コンパイル使用メモリ | 82,388 KB |
| 実行使用メモリ | 66,684 KB |
| 最終ジャッジ日時 | 2025-06-12 21:00:00 |
| 合計ジャッジ時間 | 3,598 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 23 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
count = 0
i = 0
while i < n:
if i + 1 < n and abs(a[i] - a[i+1]) <= 1:
count += 1
i += 2
else:
i += 1
print(count)
gew1fw