結果

問題 No.3112 Decrement or Mod Game
ユーザー hot-cocoa
提出日時 2025-04-19 12:55:41
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 406 bytes
コンパイル時間 808 ms
コンパイル使用メモリ 65,980 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-19 12:55:44
合計ジャッジ時間 2,690 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 65
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using int64 = long long;

int main()
{
    int64 A, B;
    std::cin >> A >> B;

    if (A == 1LL || A == B) {
        std::cout << "Alice" << std::endl;
    }
    else if (A == B + 1LL) {
        std::cout << "Bob" << std::endl;
    }
    else if (A > B + 1LL) {
        std::cout << "Alice" << std::endl;
    }
    else {
        std::cout << "Bob" << std::endl;
    }
    return 0;
}
0