結果

問題 No.2103 ±1s Game
ユーザー a a
提出日時 2022-10-22 18:21:21
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-01 19:20:25
合計ジャッジ時間 2,335 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y,k,p=list(map(int,input().split()))
if (x+y-k)%2==0:
    if y<=x-k and p==1:
        print("Alice")
    elif x<y-k and  pow(-1,y-k)==p:
        print("Alice")
    else:
        print("Bob")
elif y<=x-k-1 and p==-1:
    print("Bob")
elif x<=y-k-1 and pow(-1,y-k)==p:
    print("Bob")
else:
    print("Alice")
0