結果
問題 | No.2372 既視感 |
ユーザー | miho-4 |
提出日時 | 2023-07-07 22:55:43 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 475 bytes |
コンパイル時間 | 380 ms |
コンパイル使用メモリ | 87,100 KB |
実行使用メモリ | 79,420 KB |
最終ジャッジ日時 | 2023-09-29 00:32:06 |
合計ジャッジ時間 | 4,739 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 74 ms
71,300 KB |
testcase_01 | AC | 74 ms
71,292 KB |
testcase_02 | AC | 73 ms
71,564 KB |
testcase_03 | WA | - |
testcase_04 | AC | 74 ms
71,260 KB |
testcase_05 | AC | 73 ms
71,200 KB |
testcase_06 | AC | 74 ms
71,152 KB |
testcase_07 | AC | 75 ms
71,304 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | AC | 157 ms
79,420 KB |
ソースコード
n,k,q=map(int,input().split()) stack=[] for _ in range(q): q1=int(input()) if q1==1: s=input() stack.append(s) else: Q=[list(input().split()) for _ in range(6)] B=set() for j in range(min(n,len(stack))): B.add(stack[-1-j]) for i in range(6): Q[i][1]=int(Q[i][1]) if Q[i][0] in B: Q[i][1]=min(Q[i][1],k) t,cnt=60,0 for p,d in Q: if d<=t: cnt+=1 t-=d stack.append(p) print(cnt)