結果

問題 No.2103 ±1s Game
ユーザー ニックネーム
提出日時 2022-10-21 21:41:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 400 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-01 06:18:49
合計ジャッジ時間 2,306 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 not x%2 and x <= z//2 or y%2 and y <= z//2 else "Alice")
    else: print("Bob" if x%2 and x <= z//2 or not 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