結果
問題 | No.2 素因数ゲーム |
ユーザー | netyo715 |
提出日時 | 2021-06-29 15:47:22 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
WA
|
実行時間 | - |
コード長 | 275 bytes |
コンパイル時間 | 143 ms |
コンパイル使用メモリ | 10,584 KB |
実行使用メモリ | 8,836 KB |
最終ジャッジ日時 | 2023-09-08 01:25:54 |
合計ジャッジ時間 | 2,151 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 18 ms
8,660 KB |
testcase_01 | AC | 18 ms
8,712 KB |
testcase_02 | AC | 18 ms
8,700 KB |
testcase_03 | AC | 19 ms
8,776 KB |
testcase_04 | WA | - |
testcase_05 | AC | 18 ms
8,836 KB |
testcase_06 | AC | 18 ms
8,720 KB |
testcase_07 | AC | 18 ms
8,700 KB |
testcase_08 | WA | - |
testcase_09 | AC | 18 ms
8,688 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 18 ms
8,696 KB |
testcase_13 | AC | 18 ms
8,696 KB |
testcase_14 | AC | 19 ms
8,700 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | AC | 23 ms
8,780 KB |
testcase_18 | AC | 21 ms
8,712 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | AC | 20 ms
8,664 KB |
testcase_27 | AC | 19 ms
8,756 KB |
testcase_28 | AC | 18 ms
8,772 KB |
testcase_29 | AC | 18 ms
8,696 KB |
testcase_30 | WA | - |
ソースコード
from collections import defaultdict N = int(input()) so = defaultdict(int) m = N x = 2 while m > 1 and x < int(N**0.5)+10: while m%x==0: m //= x so[x] += 1 x += 1 f = 0 for v in so.values(): f ^= v if f: print("Alice") else: print("Bob")