結果
| 問題 |
No.2 素因数ゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-20 14:16:50 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 233 bytes |
| コンパイル時間 | 3,211 ms |
| コンパイル使用メモリ | 243,188 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-26 06:38:49 |
| 合計ジャッジ時間 | 3,696 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,m,r(0); cin >> n; m = sqrt(n);
for (int i(2),t(0);i <= m;++i,t=0){
for (;n%i==0;++t) n/=i;
r^=t;
}
if (n>1) r^=n;
cout << (r?"Alice":"Bob") << endl;
}