結果
問題 | No.2278 Time Bomb Game 2 |
ユーザー | 👑 p-adic |
提出日時 | 2023-07-14 19:23:35 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 509 bytes |
コンパイル時間 | 409 ms |
コンパイル使用メモリ | 86,852 KB |
実行使用メモリ | 80,412 KB |
最終ジャッジ日時 | 2023-10-14 09:15:43 |
合計ジャッジ時間 | 9,934 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 63 ms
71,596 KB |
testcase_01 | AC | 61 ms
71,436 KB |
testcase_02 | WA | - |
testcase_03 | RE | - |
testcase_04 | AC | 62 ms
71,540 KB |
testcase_05 | RE | - |
testcase_06 | AC | 60 ms
71,332 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 62 ms
76,364 KB |
testcase_12 | AC | 63 ms
76,336 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 70 ms
76,260 KB |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 65 ms
76,344 KB |
testcase_20 | AC | 64 ms
71,912 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 | RE | - |
testcase_38 | AC | 68 ms
76,284 KB |
testcase_39 | RE | - |
testcase_40 | AC | 65 ms
76,368 KB |
testcase_41 | RE | - |
testcase_42 | AC | 66 ms
76,256 KB |
testcase_43 | RE | - |
testcase_44 | WA | - |
testcase_45 | WA | - |
testcase_46 | WA | - |
testcase_47 | AC | 63 ms
76,252 KB |
testcase_48 | WA | - |
testcase_49 | WA | - |
testcase_50 | RE | - |
testcase_51 | WA | - |
testcase_52 | WA | - |
testcase_53 | RE | - |
testcase_54 | AC | 63 ms
71,816 KB |
testcase_55 | RE | - |
testcase_56 | AC | 63 ms
71,808 KB |
testcase_57 | RE | - |
testcase_58 | WA | - |
testcase_59 | WA | - |
testcase_60 | WA | - |
testcase_61 | WA | - |
testcase_62 | WA | - |
testcase_63 | AC | 62 ms
71,720 KB |
testcase_64 | AC | 69 ms
76,156 KB |
testcase_65 | WA | - |
testcase_66 | WA | - |
testcase_67 | WA | - |
testcase_68 | WA | - |
testcase_69 | RE | - |
testcase_70 | AC | 62 ms
71,852 KB |
testcase_71 | WA | - |
ソースコード
I,R,P,E=input,range,print,exit N,K,T=map(int,I().split()) N-=1 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)