結果

問題 No.2103 ±1s Game
ユーザー sepa38
提出日時 2022-10-21 21:32:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 476 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,088 KB
実行使用メモリ 53,916 KB
最終ジャッジ日時 2024-07-01 06:11:35
合計ジャッジ時間 2,630 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

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