結果

問題 No.2372 既視感
ユーザー 👑 rin204rin204
提出日時 2023-07-07 21:24:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 414 bytes
コンパイル時間 1,682 ms
コンパイル使用メモリ 86,628 KB
実行使用メモリ 78,568 KB
最終ジャッジ日時 2023-09-28 22:19:54
合計ジャッジ時間 5,242 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,324 KB
testcase_01 AC 76 ms
71,476 KB
testcase_02 AC 77 ms
71,492 KB
testcase_03 AC 78 ms
71,072 KB
testcase_04 AC 76 ms
71,384 KB
testcase_05 WA -
testcase_06 AC 75 ms
71,392 KB
testcase_07 AC 77 ms
71,612 KB
testcase_08 WA -
testcase_09 AC 91 ms
75,388 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 100 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 82 ms
71,368 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 122 ms
78,196 KB
testcase_28 AC 124 ms
77,924 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
        for i in range(6):
            t, d = input().split()
            d = int(d)
            if t in lst[-n:]:
                d = min(d, k)
            ans += d
            if ans <= 60:
                x += 1
        print(x)
0