結果
| 問題 | No.2 素因数ゲーム |
| コンテスト | |
| ユーザー |
hotpepsi
|
| 提出日時 | 2014-12-23 01:23:33 |
| 言語 | Python2 (2.7.18) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 175 bytes |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 818,176 KB |
| 最終ジャッジ日時 | 2024-06-12 03:49:24 |
| 合計ジャッジ時間 | 3,411 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 9 MLE * 1 -- * 21 |
ソースコード
import sys
N = int(sys.stdin.readline())
ans = 0
for n in range(2, N+1):
while (N % n) == 0:
N /= n
a += 1
ans ^= a
if ans:
print("Alice")
else:
print("Bob")
hotpepsi