結果
問題 | No.2372 既視感 |
ユーザー | june19312 |
提出日時 | 2023-07-07 22:06:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,038 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 87,128 KB |
実行使用メモリ | 78,672 KB |
最終ジャッジ日時 | 2023-09-28 23:25:00 |
合計ジャッジ時間 | 4,281 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,176 KB |
testcase_01 | AC | 71 ms
71,312 KB |
testcase_02 | AC | 72 ms
71,276 KB |
testcase_03 | AC | 72 ms
71,416 KB |
testcase_04 | AC | 73 ms
71,192 KB |
testcase_05 | WA | - |
testcase_06 | AC | 74 ms
71,184 KB |
testcase_07 | AC | 73 ms
71,280 KB |
testcase_08 | WA | - |
testcase_09 | AC | 92 ms
75,944 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 97 ms
76,228 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 78 ms
71,168 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 118 ms
77,436 KB |
testcase_28 | AC | 124 ms
78,544 KB |
ソースコード
N,K,Q = map(int,input().split()) dict = {} cnt = 1 def check(x): global cnt if x in dict: if dict[x] > cnt-N-1: return True else: return False else: return False for i in range(Q): que = int(input()) if que == 1: nex = input() dict[nex] = cnt cnt += 1 else: tes = 0 ans = 0 flg = True for j in range(6): nex2 = list(map(str,input().split())) if not flg: continue # print("j",j,"tes",tes) if check(nex2[0]): ti = min(int(nex2[1]),K) if tes + ti <= 60: tes += ti ans = j+1 else: flg = False else: ti = int(nex2[1]) if tes + ti <= 60: tes += ti ans = j+1 else: flg = False print(ans) #ans #print(dict,cnt)