結果
| 問題 | No.3847 Triple Balls Removal |
| コンテスト | |
| ユーザー |
2251799813685248
|
| 提出日時 | 2026-12-04 01:14:58 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 196 ms / 2,000 ms |
| + 760µs | |
| コード長 | 189 bytes |
| 記録 | |
| コンパイル時間 | 92 ms |
| コンパイル使用メモリ | 64,352 KB |
| 実行使用メモリ | 173,428 KB |
| 最終ジャッジ日時 | 2026-12-04 21:21:21 |
| 合計ジャッジ時間 | 7,479 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
N = int(input()) stk = [] for i in list(map(int, input().split())): stk.append(i) if len(stk) >= 3 and stk[-1] == stk[-2] == stk[-3]: stk.pop() stk.pop() stk.pop() print(N-len(stk))
2251799813685248