結果
問題 | No.2 素因数ゲーム |
ユーザー | netyo715 |
提出日時 | 2021-06-29 15:28:42 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 246 bytes |
コンパイル時間 | 1,025 ms |
コンパイル使用メモリ | 10,580 KB |
実行使用メモリ | 12,984 KB |
最終ジャッジ日時 | 2023-09-08 01:07:38 |
合計ジャッジ時間 | 9,394 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 19 ms
8,484 KB |
testcase_01 | AC | 18 ms
8,452 KB |
testcase_02 | AC | 18 ms
8,592 KB |
testcase_03 | AC | 18 ms
8,436 KB |
testcase_04 | AC | 19 ms
8,592 KB |
testcase_05 | AC | 18 ms
8,404 KB |
testcase_06 | AC | 19 ms
8,408 KB |
testcase_07 | AC | 19 ms
8,516 KB |
testcase_08 | AC | 488 ms
8,452 KB |
testcase_09 | AC | 18 ms
8,396 KB |
testcase_10 | AC | 22 ms
8,492 KB |
testcase_11 | AC | 23 ms
8,552 KB |
testcase_12 | AC | 18 ms
8,540 KB |
testcase_13 | AC | 18 ms
8,588 KB |
testcase_14 | AC | 22 ms
8,520 KB |
testcase_15 | AC | 19 ms
8,512 KB |
testcase_16 | AC | 22 ms
8,528 KB |
testcase_17 | AC | 70 ms
8,560 KB |
testcase_18 | AC | 18 ms
8,436 KB |
testcase_19 | TLE | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
ソースコード
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")