結果

問題 No.2372 既視感
ユーザー shogo314shogo314
提出日時 2023-07-07 21:31:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 478 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 78,528 KB
最終ジャッジ日時 2023-09-28 22:29:39
合計ジャッジ時間 4,368 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,548 KB
testcase_01 AC 73 ms
71,244 KB
testcase_02 AC 77 ms
71,320 KB
testcase_03 AC 78 ms
71,228 KB
testcase_04 AC 77 ms
71,460 KB
testcase_05 WA -
testcase_06 AC 76 ms
71,304 KB
testcase_07 AC 76 ms
71,360 KB
testcase_08 WA -
testcase_09 AC 90 ms
75,528 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 99 ms
76,204 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 82 ms
71,300 KB
testcase_23 AC 128 ms
78,436 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 123 ms
78,328 KB
testcase_28 AC 133 ms
77,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0