結果

問題 No.3112 Decrement or Mod Game
ユーザー Daniel Agatan
提出日時 2025-04-19 03:38:14
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 531 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2025-04-19 03:38:19
合計ジャッジ時間 4,391 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 46 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())
turn = 0
while a > 0 and b > 0:
    if turn == 0:
        if a >= b:
            a %= b
        else:
            a -= 1
    else:
        if b >= a:
            b %= a
        else:
            b -= 1
    turn ^= 1
print("Alice" if a == 0 else "Bob")
0