結果
問題 | No.2372 既視感 |
ユーザー | lloyz |
提出日時 | 2023-07-07 22:57:52 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 450 bytes |
コンパイル時間 | 138 ms |
コンパイル使用メモリ | 10,736 KB |
実行使用メモリ | 7,972 KB |
最終ジャッジ日時 | 2023-09-29 00:34:25 |
合計ジャッジ時間 | 1,969 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,800 KB |
testcase_01 | AC | 16 ms
7,780 KB |
testcase_02 | AC | 15 ms
7,888 KB |
testcase_03 | AC | 15 ms
7,748 KB |
testcase_04 | AC | 15 ms
7,800 KB |
testcase_05 | WA | - |
testcase_06 | AC | 16 ms
7,772 KB |
testcase_07 | AC | 15 ms
7,776 KB |
testcase_08 | WA | - |
testcase_09 | AC | 19 ms
7,772 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 20 ms
7,804 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 17 ms
7,804 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 22 ms
7,896 KB |
testcase_28 | AC | 26 ms
7,748 KB |
ソースコード
n, k, q = map(int, input().split()) seen = set() for _ in range(q): qq = int(input()) if qq == 1: s = input() seen.add(s) elif qq == 2: res = 0 tt = 0 for __ in range(6): s, t = input().split() t = int(t) if s in seen: tt += min(t, k) else: tt += t if tt <= 60: res += 1 print(res)