結果

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

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll=long long;
using ld=long double;
using vll=vector<ll>;
using pll=pair<ll,ll>;
using plll=pair<pll,ll>;
using lpll=pair<ll,pll>;
using mpll=map<ll,ll>;
using vvll=vector<vector<ll>>;
using vpll=vector<pair<ll,ll>>;
using vstr=vector<string>;
using Graph=vvll;
const ll INF=0x1fffffffffffffff;
const ll MOD=998244353;
const ll MODD=1000000007;
const ld PI=3.1415926535897932;
#define overload4(_1,_2,_3,_4,name,...) name
#define rep1(a) for(ll i=0;i<a;i++)
#define rep2(i,a) for(ll i=0;i<a;i++)
#define rep3(i,a,b) for(ll i=a;i<b;i++)
#define rep4(i,a,b,c) for(ll i=a;i<b;i+=c)
#define rep(...) overload4(__VA_ARGS__,rep4,rep3,rep2,rep1)(__VA_ARGS__)
#define rrep1(n) for(ll i=(n)-1;i>=0;i--)
#define rrep2(i,n) for(ll i=(n)-1;i>=0;i--)
#define rrep3(i,a,b) for(ll i=(b)-1;i>=(a);i--)
#define rrep4(i,a,b,c) for(ll i=a+(b-a-1)/c*c;i>=a;i-=c)
#define rrep(...) overload4(__VA_ARGS__,rrep4,rrep3,rrep2,rrep1)(__VA_ARGS__)
#define overload2(_1,_2,name,...) name
#define each1(a) for(auto &i:a)
#define each2(i,a) for(auto &i:a)
#define each(...) overload2(__VA_ARGS__,each2,each1)(__VA_ARGS__)
#define all(i) begin(i),end(i)
#define rall(i) rbegin(i),rend(i)
#define vec(type,name,...) vector<type>name(__VA_ARGS__)
#define vv(type,name,h,...) vector name(h,vector<type>(__VA_ARGS__))
#define vvv(type,name,h,w,...) vector name(h,vector(w,vector<type>(__VA_ARGS__)))
template<class T>bool chmin(T&a,const T&b){if(a>b){a=b;return 1;}return 0;}
template<class T>bool chmax(T&a,const T&b){if(a<b){a=b;return 1;}return 0;}
template<class T>auto min(const T&a){return*min_element(all(a));}
template<class T>auto max(const T&a){return*max_element(all(a));}
template<class T>ll sum(const T&a){return accumulate(all(a),0LL);}
template<class T>ll sz(const T&a){return (ll)a.size();}
// template<class T,class S>bool contains(const T&a, const S&v){return ranges::find(a,v)!=a.end();}
template<class T>int out(const T&a){cout<<a<<endl;return 0;}
template<class T>int vout(const T&a){each(x,a)cout<<x<<" ";cout<<endl;return 0;}
template<class T>int vvout(const T&a){each(x,a)vout(x);return 0;}
int yes(){cout<<"Yes"<<endl;return 0;}
int no(){cout<<"No"<<endl;return 0;}

int main(){
  ll a,b;
  cin>>a>>b;

  vstr p = {"Alice", "Bob"};

  if(a==1)return out(p[0]);
  if(a%b==0)return out(p[0]);
  if(a-b==1)return out(p[1]);
  if(a>b)return out(p[0]);
  out(p[1]);
}
0