結果
問題 | No.2372 既視感 |
ユーザー | i_taku |
提出日時 | 2023-07-07 21:57:28 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 450 bytes |
コンパイル時間 | 937 ms |
コンパイル使用メモリ | 87,184 KB |
実行使用メモリ | 78,648 KB |
最終ジャッジ日時 | 2023-09-28 23:08:33 |
合計ジャッジ時間 | 4,724 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 96 ms
71,664 KB |
testcase_01 | AC | 92 ms
71,660 KB |
testcase_02 | AC | 94 ms
71,904 KB |
testcase_03 | AC | 95 ms
71,552 KB |
testcase_04 | AC | 91 ms
71,672 KB |
testcase_05 | WA | - |
testcase_06 | AC | 90 ms
71,728 KB |
testcase_07 | AC | 90 ms
71,696 KB |
testcase_08 | WA | - |
testcase_09 | AC | 107 ms
76,776 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 113 ms
77,572 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 97 ms
72,168 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 132 ms
77,860 KB |
testcase_28 | AC | 141 ms
78,648 KB |
ソースコード
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)