結果
| 問題 | No.2 素因数ゲーム |
| コンテスト | |
| ユーザー |
こる
|
| 提出日時 | 2017-01-04 03:13:21 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 292 ms / 5,000 ms |
| コード長 | 317 bytes |
| コンパイル時間 | 717 ms |
| コンパイル使用メモリ | 53,724 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 12:53:33 |
| 合計ジャッジ時間 | 2,465 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
#include<iostream>
using namespace std;
int main(){
int n;
cin >> n;
int root = n;
int i = 2;
int t = 0;
int count;
while (n != 1){
count = 0;
while (n%i == 0){
count++;
n /= i;
}
t ^= count;
i++;
}
if (t == 0){
cout << "Bob" << endl;
}
else{
cout << "Alice" << endl;
}
return 0;
}
こる