結果

問題 No.2372 既視感
ユーザー 👑 rin204rin204
提出日時 2023-07-07 21:25:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 473 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 87,000 KB
実行使用メモリ 79,372 KB
最終ジャッジ日時 2023-09-28 22:21:32
合計ジャッジ時間 4,756 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,272 KB
testcase_01 AC 69 ms
71,276 KB
testcase_02 AC 66 ms
71,272 KB
testcase_03 AC 67 ms
71,260 KB
testcase_04 AC 68 ms
71,264 KB
testcase_05 WA -
testcase_06 AC 69 ms
71,332 KB
testcase_07 AC 68 ms
71,064 KB
testcase_08 WA -
testcase_09 AC 79 ms
75,636 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 92 ms
76,120 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 72 ms
71,344 KB
testcase_23 AC 114 ms
78,552 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 116 ms
78,736 KB
testcase_28 AC 118 ms
77,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k, Q = map(int, input().split())
lst = []
for _ in range(Q):
    t = int(input())
    if t == 1:
        S = input()
        lst.append(S)
    else:
        ans = 0
        x = 0
        TT = []
        for i in range(6):
            t, d = input().split()
            TT.append(t)
            d = int(d)
            if t in lst[-n:]:
                d = min(d, k)
            ans += d
            if ans <= 60:
                x += 1
        print(x)
        lst += TT
0