結果

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

ソースコード

diff #

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