結果
| 問題 | No.2 素因数ゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-09-10 22:38:55 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 273 bytes | 
| コンパイル時間 | 1,389 ms | 
| コンパイル使用メモリ | 165,900 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-24 04:42:57 | 
| 合計ジャッジ時間 | 2,316 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 31 | 
ソースコード
#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
    int N,ans=0;
    cin>>N;
    for(int i=2;i*i<=N;i++){
        int cnt=0;
        for(;N%i==0;N/=i)cnt++;
        ans^=cnt;
    }
    if(N!=1)ans^=1;
    cout<<(ans?"Alice":"Bob")<<endl;
}
            
            
            
        