結果
問題 |
No.2 素因数ゲーム
|
ユーザー |
![]() |
提出日時 | 2018-03-09 01:08:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1,137 ms / 5,000 ms |
コード長 | 254 bytes |
コンパイル時間 | 1,994 ms |
コンパイル使用メモリ | 165,636 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 13:20:18 |
合計ジャッジ時間 | 5,435 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int64_t n; cin >> n; int x = 0; for (int64_t i = 2; 1 < n; i++) { int p = 0; while (n % i == 0) { n /= i; p++; } x ^= p; } cout << (x ? "Alice" : "Bob") << endl; return 0; }