結果
| 問題 |
No.2 素因数ゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-05 10:14:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 1,512 ms / 5,000 ms |
| コード長 | 237 bytes |
| コンパイル時間 | 807 ms |
| コンパイル使用メモリ | 81,792 KB |
| 実行使用メモリ | 58,112 KB |
| 最終ジャッジ日時 | 2024-12-30 12:33:09 |
| 合計ジャッジ時間 | 6,766 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
n = int(input())
ans = 0
now = n
for i in range(2,n):
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")