結果
| 問題 | No.2 素因数ゲーム |
| コンテスト | |
| ユーザー |
shiomusubi496
|
| 提出日時 | 2020-09-10 22:38:55 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 231µs | |
| コード長 | 273 bytes |
| 記録 | |
| コンパイル時間 | 814 ms |
| コンパイル使用メモリ | 182,196 KB |
| 実行使用メモリ | 9,924 KB |
| 最終ジャッジ日時 | 2026-10-07 00:42:34 |
| 合計ジャッジ時間 | 2,912 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
shiomusubi496