結果

問題 No.3112 Decrement or Mod Game
ユーザー lk step
提出日時 2025-04-18 21:13:58
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 1,609 ms
コンパイル使用メモリ 193,476 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-18 21:14:04
合計ジャッジ時間 3,112 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 65
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;

int main(){
  ll a,b;
  cin>>a>>b;
  if(a==1 || (a>=b && a%b==0) ){
    cout<<"Alice"<<endl;
    return 0;
  }
  if(a<b){
    cout<<"Bob"<<endl;
  }else if(a==b+1){
    cout<<"Bob"<<endl;
  }else if(a>b+1){
    cout<<"Alice"<<endl;
  }
  return 0;
}

0