結果

問題 No.2372 既視感
ユーザー 👑 p-adicp-adic
提出日時 2023-07-07 21:47:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 369 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 87,112 KB
実行使用メモリ 79,000 KB
最終ジャッジ日時 2023-09-28 22:51:16
合計ジャッジ時間 4,354 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,572 KB
testcase_01 AC 75 ms
71,596 KB
testcase_02 AC 77 ms
71,552 KB
testcase_03 AC 75 ms
71,472 KB
testcase_04 AC 75 ms
71,396 KB
testcase_05 WA -
testcase_06 AC 77 ms
71,396 KB
testcase_07 AC 75 ms
71,216 KB
testcase_08 WA -
testcase_09 AC 96 ms
75,880 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 108 ms
77,224 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 85 ms
75,688 KB
testcase_23 AC 123 ms
77,720 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 129 ms
77,784 KB
testcase_28 AC 171 ms
79,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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