結果

問題 No.2103 ±1s Game
ユーザー flygon
提出日時 2022-10-21 22:17:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 82,068 KB
実行使用メモリ 53,724 KB
最終ジャッジ日時 2024-07-01 06:52:24
合計ジャッジ時間 2,704 ms
ジャッジサーバーID
(参考情報)
judge5 / 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 > bt:
      print("Bob")
    else:
      print("Alice")
else:
  if at == bt:
    print("Bob")
  else:
    if y > bt:
      print("Alice")
    else:
      print("Bob")
0