結果
| 問題 | No.2 素因数ゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-29 15:28:42 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 306 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 15,872 KB |
| 最終ジャッジ日時 | 2026-07-30 00:21:13 |
| 合計ジャッジ時間 | 10,038 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 TLE * 1 -- * 11 |
ソースコード
from collections import defaultdict
N = int(input())
so = defaultdict(int)
x = 2
while N > 1:
while N%x==0:
N //= x
so[x] += 1
x += 1
f = 0
for v in so.values():
f ^= v
if f:
print("Alice")
else:
print("Bob")