結果
問題 |
No.2 素因数ゲーム
|
ユーザー |
|
提出日時 | 2023-03-16 13:31:36 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,193 ms / 5,000 ms |
コード長 | 228 bytes |
コンパイル時間 | 151 ms |
コンパイル使用メモリ | 82,036 KB |
実行使用メモリ | 57,600 KB |
最終ジャッジ日時 | 2024-09-18 09:19:59 |
合計ジャッジ時間 | 4,381 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
N = int(input()) x = 0 b = 2 e = 0 while N > 1: while N % b == 0: N //= b e += 1 if e > 0: x ^= e b += 1 e = 0 if N > 1: x ^= 1 if x == 0: print("Bob") else: print("Alice")