結果

問題 No.2 素因数ゲーム
ユーザー とりゐ
提出日時 2022-01-03 23:11:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 208 bytes
コンパイル時間 224 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 58,240 KB
最終ジャッジ日時 2024-10-13 11:53:48
合計ジャッジ時間 2,608 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
xor=0
tmp=n
for i in range(2,10**5):
  if tmp%i==0:
    cnt=0
    while tmp%i==0:
      cnt+=1
      tmp//=i
    xor=xor^cnt
if tmp!=1:
  xor^=1
if xor==0:
  print('Bob')
else:
  print('Alice')
0