結果
問題 | No.2372 既視感 |
ユーザー | uuuus17 |
提出日時 | 2023-07-07 22:05:34 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,539 bytes |
コンパイル時間 | 348 ms |
コンパイル使用メモリ | 86,912 KB |
実行使用メモリ | 82,500 KB |
最終ジャッジ日時 | 2023-09-28 23:23:26 |
合計ジャッジ時間 | 5,307 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 110 ms
74,020 KB |
testcase_01 | AC | 106 ms
73,628 KB |
testcase_02 | AC | 109 ms
73,876 KB |
testcase_03 | AC | 107 ms
73,920 KB |
testcase_04 | AC | 108 ms
73,604 KB |
testcase_05 | WA | - |
testcase_06 | AC | 111 ms
73,656 KB |
testcase_07 | AC | 113 ms
73,976 KB |
testcase_08 | WA | - |
testcase_09 | AC | 122 ms
77,932 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 130 ms
78,696 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 113 ms
73,828 KB |
testcase_23 | AC | 157 ms
81,700 KB |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 165 ms
82,500 KB |
testcase_28 | AC | 166 ms
81,352 KB |
ソースコード
# import sys # sys.setrecursionlimit(10**7) # input = sys.stdin.readline # import pypyjit # pypyjit.set_param('max_unroll_recursion=-1') def mp():return map(int,input().split()) def lmp():return list(map(int,input().split())) def lm1(LIST): return list(map(lambda x:x-1, LIST)) def mps(A):return [tuple(map(int, input().split())) for _ in range(A)] def stoi(LIST):return list(map(int,LIST)) def itos(LIST):return list(map(str,LIST)) def atoi(LIST): return [ord(i)-ord("a") for i in LIST] def Atoi(LIST): return [ord(i)-ord("A") for i in LIST] def bitA(X,A):return X & 1<<A == 1<<A import math import bisect import heapq import time from copy import copy as cc from copy import deepcopy as dc from itertools import accumulate, product from collections import Counter, defaultdict, deque def ceil(U,V):return (U+V-1)//V def modf1(N,MOD):return (N-1)%MOD+1 inf = (1<<63)-1 mod = 998244353 n,k,q = mp() A = [] for _ in range(q): a = int(input()) if a == 1: t = input() A.append(t) else: cnt = 0 ans = 0 kisikan = cc(A[-min(n,len(A)):]) #print(A) #print(kisikan) mondai = [] for i in range(6): Q,M = map(str,input().split()) M = int(M) mondai.append([Q,M]) for i,j in mondai: if i in kisikan: cnt += min(j,k) else: cnt += j if cnt > 60:break ans += 1 print(ans) for i in range(6): A.append(mondai[i][0])