結果

問題 No.2278 Time Bomb Game 2
ユーザー 👑 p-adicp-adic
提出日時 2023-07-14 19:25:59
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 504 bytes
コンパイル時間 330 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 76,444 KB
最終ジャッジ日時 2023-10-14 09:18:37
合計ジャッジ時間 9,352 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,324 KB
testcase_01 AC 76 ms
71,128 KB
testcase_02 AC 70 ms
71,476 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 72 ms
71,312 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 77 ms
76,096 KB
testcase_12 AC 76 ms
76,068 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 76 ms
76,200 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 75 ms
76,100 KB
testcase_20 AC 71 ms
71,864 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 76 ms
76,180 KB
testcase_39 WA -
testcase_40 AC 74 ms
76,276 KB
testcase_41 AC 74 ms
76,028 KB
testcase_42 AC 76 ms
76,148 KB
testcase_43 AC 77 ms
76,180 KB
testcase_44 WA -
testcase_45 AC 76 ms
76,216 KB
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 73 ms
71,696 KB
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 AC 71 ms
71,528 KB
testcase_55 WA -
testcase_56 AC 74 ms
71,632 KB
testcase_57 AC 73 ms
71,652 KB
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
testcase_61 WA -
testcase_62 WA -
testcase_63 WA -
testcase_64 AC 77 ms
76,064 KB
testcase_65 WA -
testcase_66 WA -
testcase_67 AC 77 ms
76,084 KB
testcase_68 WA -
testcase_69 AC 73 ms
71,760 KB
testcase_70 AC 73 ms
71,556 KB
testcase_71 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

I,R,P,E=input,range,print,exit
N,K,T=map(int,I().split())
K-=1
c=I()
a="A"
b="B"
A="Alice"
B="Bob"
if c[K]>a:a,b,A,B=b,a,B,A
for i in R(K,N):
	r=i
	if c[i]==b:break
for i in R(K,-1,-1):
	l=i
	if c[i]==b:break
if l<r:
	if r-K<=T and (T-r+K)%2:P(A),E(0)
	if K-l<=T and (T-K+l)%2:P(A),E(0)
	P(B),E(0)
if T%2:
	l=r=K
	for i in R(K+1,N):
		r=i
		if c[i]==a:break
	for i in R(K-1,-1,-1):
		l=i
		if c[i]==a:break
	if K<r and(r-K>T or (T-r+K)%2<1):P(A),E(0)
	if l<K and(K-l>T or (T-K+l)%2<1):P(A),E(0)
P(B),E(0)
0