結果
| 問題 |
No.2372 既視感
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-07 21:31:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 478 bytes |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 82,124 KB |
| 実行使用メモリ | 76,984 KB |
| 最終ジャッジ日時 | 2024-07-21 17:14:49 |
| 合計ジャッジ時間 | 2,756 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 16 |
ソースコード
N,K,Q=map(int,input().split())
A=[]
for _ in range(Q):
q=int(input())
if q==1:
A.append(input())
else:
td=[tuple(input().split()) for i in range(6)]
x=0
ans=0
for t,d in td:
y=10**6
if t in A[-N:]:
y=min(K,int(d))
else:
y=int(d)
if x+y<=60:
ans+=1
x+=y
print(ans)
for t,d in td:
A.append(t)