結果

問題 No.2103 ±1s Game
ユーザー flygon
提出日時 2022-10-21 22:20:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 82,192 KB
実行使用メモリ 54,220 KB
最終ジャッジ日時 2024-07-01 06:54:59
合計ジャッジ時間 2,587 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y,k,p = map(int,input().split())
at = (x+y-k+1)//2
bt = x+y-k-at
if p == 1:
  if at > bt:
    print("Alice")
  else:
    if y > at:
      print("Bob")
    else:
      print("Alice")
else:
  if at == bt:
    print("Bob")
  else:
    if y > bt:
      print("Alice")
    else:
      print("Bob")
0