結果
| 問題 |
No.2 素因数ゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-19 23:01:22 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 271 bytes |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-27 10:45:10 |
| 合計ジャッジ時間 | 2,220 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 WA * 11 |
ソースコード
N = int(input())
NN = N
i = 2
ret = []
while i*i<=N:
c = [i, 0]
while N%i==0:
c[1] += 1
N //= i
if c[1]>0:
ret.append(c)
i += 1
if N!=1: ret.append([N, 1])
num = 0
for _, n in ret:
num ^= n
print("Alice" if num!=0 else "BoB")