結果

問題 No.3112 Decrement or Mod Game
ユーザー Mistletoe
提出日時 2025-04-19 03:26:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 375 bytes
コンパイル時間 584 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2025-04-19 03:26:59
合計ジャッジ時間 5,231 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 RE * 1
other AC * 21 WA * 14 RE * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = input().split(" ")

# 1) If either pile is 1, Alice wins immediately:
if A == 1 or B == 1:
    print("Alice")
# 2) Otherwise, if A < B, Alice is forced into a losing "race":
elif A < B:
    print("Bob")
# 3) Otherwise, if A = B+1, every move hands Bob a win:
elif A == B + 1:
    print("Bob")
# 4) In all other cases, Alice has a winning move:
else:
    print("Alice")
0