結果
問題 | No.2372 既視感 |
ユーザー |
👑 |
提出日時 | 2023-07-07 21:26:36 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 97 ms / 2,000 ms |
コード長 | 478 bytes |
コンパイル時間 | 415 ms |
コンパイル使用メモリ | 82,368 KB |
実行使用メモリ | 76,776 KB |
最終ジャッジ日時 | 2024-07-21 17:07:32 |
合計ジャッジ時間 | 2,776 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
n, k, Q = map(int, input().split())lst = []for _ in range(Q):t = int(input())if t == 1:S = input()lst.append(S)else:ans = 0x = 0TT = []for i in range(6):t, d = input().split()d = int(d)if t in lst[-n:]:d = min(d, k)ans += dif ans <= 60:x += 1TT.append(t)print(x)lst += TT