結果

問題 No.3112 Decrement or Mod Game
ユーザー Alph(その辺の大学生A)
提出日時 2025-04-20 01:57:45
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 349 bytes
コンパイル時間 1,031 ms
コンパイル使用メモリ 65,888 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-20 01:57:48
合計ジャッジ時間 3,120 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 65
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdint>

using namespace std;
int main() {
    int64_t A, B;
    cin >> A >> B;
    if ((A >= B && A-B != 1) || A == 1) {
        cout << "Alice" << endl; // Aliceが先に0になったのでBobの勝ち
    } else {
        cout << "Bob" << endl; // Bobが先に0になったのでAliceの勝ち
    }
    return 0;
}
0