結果
| 問題 | No.3847 Triple Balls Removal |
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2026-12-04 21:22:12 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 187 ms / 2,000 ms |
| + 1µs | |
| コード長 | 209 bytes |
| 記録 | |
| コンパイル時間 | 112 ms |
| コンパイル使用メモリ | 64,212 KB |
| 実行使用メモリ | 173,448 KB |
| 最終ジャッジ日時 | 2026-12-04 21:22:20 |
| 合計ジャッジ時間 | 6,937 ms |
|
ジャッジサーバーID (参考情報) |
judge6_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
st = []
for x in a:
st.append(x)
if len(st) >= 3 and st[-3] == st[-2] == st[-1]:
for _ in range(3):
st.pop()
print(n - len(st))
hir355