結果
| 問題 | 
                            No.3112 Decrement or Mod Game
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2025-04-18 21:48:59 | 
| 言語 | C++23  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 339 bytes | 
| コンパイル時間 | 3,257 ms | 
| コンパイル使用メモリ | 272,396 KB | 
| 実行使用メモリ | 7,848 KB | 
| 最終ジャッジ日時 | 2025-04-18 21:49:11 | 
| 合計ジャッジ時間 | 4,929 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 37 WA * 28 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
//頂点倍加ダイクストラ
int f(int a,int b){
    if(a<b)swap(a,b);
    if(b==0)return 0;
    return 1+f(b,a%b);
}
signed main(){
    int a,b;cin>>a>>b;
    int cnt=f(a,b);
    // cout<<cnt<<endl;
    if(cnt%2==1)cout<<"Alice"<<endl;
    else cout<<"Bob"<<endl;
}