結果
問題 | No.2372 既視感 |
ユーザー | rlangevin |
提出日時 | 2023-07-07 21:32:38 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 694 bytes |
コンパイル時間 | 298 ms |
コンパイル使用メモリ | 86,884 KB |
実行使用メモリ | 78,316 KB |
最終ジャッジ日時 | 2023-09-28 22:30:39 |
合計ジャッジ時間 | 4,420 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 92 ms
71,700 KB |
testcase_01 | AC | 86 ms
71,888 KB |
testcase_02 | AC | 87 ms
71,616 KB |
testcase_03 | AC | 86 ms
71,784 KB |
testcase_04 | AC | 89 ms
71,828 KB |
testcase_05 | WA | - |
testcase_06 | AC | 86 ms
71,632 KB |
testcase_07 | AC | 87 ms
71,472 KB |
testcase_08 | WA | - |
testcase_09 | AC | 97 ms
76,292 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 101 ms
77,384 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 93 ms
76,268 KB |
testcase_23 | AC | 110 ms
78,096 KB |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 118 ms
77,812 KB |
testcase_28 | AC | 120 ms
78,316 KB |
ソースコード
import sys input = sys.stdin.readline from collections import * N, K, Q = map(int, input().split()) S = deque() for _ in range(Q): flag = int(input()) if flag == 1: S.append(input().rstrip()) else: t, d = [0] * 6, [0] * 6 for i in range(6): t[i], d[i] = input().split() ans = 0 now = 0 for i in range(6): if t[i] in S: now += min(int(d[i]), K) else: now += int(d[i]) if now <= 60: ans += 1 S.append(t[i]) while len(S) > N: S.popleft() print(ans)