結果

問題 No.2103 ±1s Game
ユーザー flygonflygon
提出日時 2022-10-21 22:28:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 71,480 KB
最終ジャッジ日時 2023-09-13 22:46:19
合計ジャッジ時間 4,944 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,356 KB
testcase_01 AC 72 ms
71,108 KB
testcase_02 AC 73 ms
71,480 KB
testcase_03 AC 73 ms
71,256 KB
testcase_04 AC 71 ms
71,056 KB
testcase_05 AC 72 ms
71,112 KB
testcase_06 AC 74 ms
71,320 KB
testcase_07 AC 73 ms
71,228 KB
testcase_08 AC 74 ms
71,256 KB
testcase_09 AC 75 ms
71,076 KB
testcase_10 AC 73 ms
71,008 KB
testcase_11 AC 72 ms
70,828 KB
testcase_12 AC 74 ms
71,008 KB
testcase_13 AC 74 ms
71,288 KB
testcase_14 AC 73 ms
71,144 KB
testcase_15 WA -
testcase_16 AC 75 ms
71,180 KB
testcase_17 WA -
testcase_18 AC 72 ms
71,168 KB
testcase_19 AC 72 ms
71,176 KB
testcase_20 AC 72 ms
71,256 KB
testcase_21 WA -
testcase_22 AC 71 ms
70,860 KB
testcase_23 AC 74 ms
71,028 KB
testcase_24 AC 74 ms
71,288 KB
testcase_25 AC 72 ms
71,016 KB
testcase_26 AC 73 ms
71,024 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 75 ms
71,020 KB
testcase_30 AC 73 ms
71,328 KB
testcase_31 WA -
testcase_32 AC 75 ms
71,008 KB
testcase_33 AC 75 ms
71,172 KB
testcase_34 AC 77 ms
71,468 KB
testcase_35 AC 74 ms
71,288 KB
testcase_36 AC 73 ms
71,020 KB
権限があれば一括ダウンロードができます

ソースコード

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 % 2 == 1:
      if y > bt:
        print("Alice")
      else:
        print("Bob")
    else:
      if y-1 > bt:
        print("Alice")
      else:
        print("Bob")
0