結果
問題 | No.2 素因数ゲーム |
ユーザー |
|
提出日時 | 2025-03-24 01:56:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 71 ms / 5,000 ms |
コード長 | 298 bytes |
コンパイル時間 | 233 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 11,648 KB |
最終ジャッジ日時 | 2025-03-24 01:56:20 |
合計ジャッジ時間 | 3,698 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
n=int(input()) a=[False]*10**5 v=[2] for i in range(3,10**5,2): if a[i]: continue v.append(i) for j in range(i,10**5,i): a[j]=True ans=[] for i in v: x=0 while n%i==0: n//=i x+=1 ans.append(x) if n!=1: ans.append(1) c=0 for i in ans: c^=i if c: print("Alice") else: print("Bob")