結果
| 問題 | No.2 素因数ゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-05 10:15:36 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 27 ms / 5,000 ms |
| + 592µs | |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 82,568 KB |
| 実行使用メモリ | 62,588 KB |
| 最終ジャッジ日時 | 2026-10-09 15:41:54 |
| 合計ジャッジ時間 | 2,674 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
n = int(input())
ans = 0
now = n
for i in range(2,int(n**0.5)+1):
if i > now:
break
c = 0
while now%i == 0:
c += 1
now //= i
ans ^= c
if now != 1:
ans ^= 1
if ans:
print("Alice")
else:
print("Bob")