結果
| 問題 |
No.2 素因数ゲーム
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-03-27 08:43:43 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 244 bytes |
| コンパイル時間 | 1,504 ms |
| コンパイル使用メモリ | 166,828 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-01-02 08:16:27 |
| 合計ジャッジ時間 | 2,808 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
int n;cin>>n;
map<int,int> m;
for(int i=2;i*i<=n;i++)while(n%i==0)m[i]++,n/=i;
if(n>1)m[n]++;
int ans=0;
for(auto p:m)ans^=p.second;
cout<<(ans?"Alice":"Bob")<<endl;
}
cureskol