結果

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

ソースコード

diff #

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