結果

問題 No.3112 Decrement or Mod Game
ユーザー LyricalMaestro
提出日時 2025-06-07 14:57:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 82,572 KB
実行使用メモリ 53,728 KB
最終ジャッジ日時 2025-06-07 14:57:12
合計ジャッジ時間 4,697 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 65
権限があれば一括ダウンロードができます

ソースコード

diff #

## https://yukicoder.me/problems/no/3112

def main():
    A, B =  map(int, input().split())

    if A % B == 0:
        print("Alice")
    elif A == 1:
        print("Alice")
    else:
        if A - 1 > B:
            print("Alice")
        elif A - 1 == B:
            print("Bob")
        elif A == B:
            print("Alice")
        else:
            # A < B
            print("Bob")


if __name__ == "__main__":
    main()
0