結果

問題 No.2521 Don't be Same
ユーザー hirayuu_ychirayuu_yc
提出日時 2023-10-27 21:45:44
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 722 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 81,856 KB
実行使用メモリ 82,408 KB
平均クエリ数 2.00
最終ジャッジ日時 2023-10-27 21:45:51
合計ジャッジ時間 6,195 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 WA -
testcase_04 WA -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 95 ms
69,876 KB
testcase_11 AC 94 ms
69,876 KB
testcase_12 AC 94 ms
69,876 KB
testcase_13 AC 94 ms
69,876 KB
testcase_14 AC 98 ms
69,876 KB
testcase_15 AC 101 ms
69,876 KB
testcase_16 AC 95 ms
69,876 KB
testcase_17 AC 97 ms
69,876 KB
testcase_18 AC 91 ms
69,876 KB
testcase_19 AC 98 ms
69,876 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

X,Y=map(int,input().split())
if abs(X-Y)==1 and min(x,y)%2==1:
    print("Second",flush=True)
    t,*s=input().split()
    if s[0]=="1":
        X-=int(s[1])
    else:
        Y-=int(s[1])
else:
    print("First",flush=True)
while True:
    if X==Y:
        print("B",flush=True)
        break
    if X==0:
        print("A",2,Y,flush=True)
        break
    if Y==0:
        print("A",1,X,flush=True)
        break
    if X%2==0:
        print("A",2,Y-(X-1),flush=True)
    elif Y%2==0:
        print("A",1,X-(Y-1),flush=True)
    elif X<Y:
        print("A",2,Y-X-1,flush=True)
    else:
        print("A",1,X-Y-1,flush=True)
    t,*s=input().split()
    if s[0]=="1":
        X-=int(s[1])
    else:
        Y-=int(s[1])
0