結果
| 問題 | No.2372 既視感 |
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2023-07-07 21:34:22 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 177 ms / 2,000 ms |
| コード長 | 429 bytes |
| 記録 | |
| コンパイル時間 | 649 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-03 05:26:26 |
| 合計ジャッジ時間 | 5,771 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
from collections import deque
n,k,q = map(int,input().split())
a = deque()
for _ in range(q):
if int(input())==1:
a.append(input())
if len(a)>n: a.popleft()
else:
s = c = 0
for _ in range(6):
t,d = input().split(); d = int(d)
if t in a: d = min(d,k)
if s+d<=60: a.append(t); c += 1
s += d
while len(a)>n: a.popleft()
print(c)
ニックネーム