結果

問題 No.2372 既視感
ユーザー 👑 p-adicp-adic
提出日時 2023-07-07 21:37:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 361 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 87,160 KB
実行使用メモリ 78,824 KB
最終ジャッジ日時 2023-09-28 22:37:52
合計ジャッジ時間 4,472 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,308 KB
testcase_01 AC 75 ms
71,312 KB
testcase_02 AC 75 ms
71,280 KB
testcase_03 AC 73 ms
71,308 KB
testcase_04 AC 73 ms
71,356 KB
testcase_05 WA -
testcase_06 AC 73 ms
71,200 KB
testcase_07 AC 75 ms
71,316 KB
testcase_08 WA -
testcase_09 AC 94 ms
75,908 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 107 ms
77,780 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 84 ms
75,744 KB
testcase_23 AC 136 ms
78,360 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 129 ms
77,700 KB
testcase_28 AC 171 ms
78,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I,R,P=input,range,print
def J():
	return map(int,I().split())
N,K,Q=J()
A=[]
M=0
for q in R(Q):
	t=I()
	if t=="1":
		A+=[I()]
		M+=1
	else:
		i,c,B=60,6,[]
		while i*c>0:
			t,d=I().split()
			d=int(d)
			for a in A[-N:]:
				if t==a:d=min(d,K)
			i,c=i-d,c-1
			B+=[t]
		P([6-c,6-c-1][i<0])
		while c>0:
			t,d=I().split()
			B+=[t]
			c-=1
		for b in B:A+=[b]
0