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