結果
| 問題 |
No.2372 既視感
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-08 00:52:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 391 bytes |
| コンパイル時間 | 336 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 77,440 KB |
| 最終ジャッジ日時 | 2024-07-21 21:11:55 |
| 合計ジャッジ時間 | 3,502 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 WA * 21 |
ソースコード
n,k,q=map(int,input().split())
A=[]
for _ in range(q):
q1=int(input())
if q1==1:
s=input()
A.append(s)
else:
sum_d,ans=0,0
solved=[]
for _ in range(6):
t,d=input().split()
d=int(d)
if t in A[-min(len(A),n):]:
d=min(d,k)
if sum_d+d<=60:
sum_d+=d
ans+=1
solved.append(t)
A+=solved
print(ans)