結果
| 問題 |
No.2372 既視感
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-07 21:57:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 450 bytes |
| コンパイル時間 | 319 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 77,312 KB |
| 最終ジャッジ日時 | 2024-07-21 17:52:02 |
| 合計ジャッジ時間 | 3,264 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 17 |
ソースコード
from collections import deque
N, K, Q = map(int, input().split())
A = deque()
for _ in range(Q):
t = int(input())
if t == 1:
A.append(input())
if N < len(A):
A.popleft()
continue
tot = ans = 0
TD = [list(input().split()) for _ in range(6)]
for t, d in TD:
u = int(d)
if t in A: u = min(u, K)
if 60 < tot + u: break
tot += u
ans += 1
print(ans)