結果

問題 No.2 素因数ゲーム
ユーザー Twizz
提出日時 2017-05-14 20:28:36
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 394 bytes
コンパイル時間 1,070 ms
コンパイル使用メモリ 158,088 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-16 05:51:52
合計ジャッジ時間 1,997 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include"bits/stdc++.h"
//#include<bits/stdc++.h>
using namespace std;
#define print(x) cout<<x<<endl;
#define rep(i,a,b) for(int i=a;i<b;i++)
typedef long long ll;
const ll mod = LLONG_MAX;


int main() {
	int n,ans=0;
	cin >> n;
	for (int i = 2; i*i <= n; i++) {
		int count = 0;
		while (n%i == 0) {
			count++;
			n /= i;
		}
		ans ^= count;
	}
	print((ans ? "Alice" : "Bob"));
	return 0;
}
0