結果
問題 | No.2 素因数ゲーム |
ユーザー | qib |
提出日時 | 2023-02-05 12:26:47 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 276 bytes |
コンパイル時間 | 1,032 ms |
コンパイル使用メモリ | 86,444 KB |
実行使用メモリ | 75,672 KB |
最終ジャッジ日時 | 2023-09-17 05:18:33 |
合計ジャッジ時間 | 4,555 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
71,404 KB |
testcase_01 | WA | - |
testcase_02 | AC | 72 ms
71,168 KB |
testcase_03 | AC | 72 ms
71,132 KB |
testcase_04 | WA | - |
testcase_05 | AC | 71 ms
71,160 KB |
testcase_06 | AC | 79 ms
75,340 KB |
testcase_07 | AC | 76 ms
75,516 KB |
testcase_08 | WA | - |
testcase_09 | AC | 77 ms
75,584 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 73 ms
75,368 KB |
testcase_13 | AC | 76 ms
75,028 KB |
testcase_14 | AC | 76 ms
75,628 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | AC | 75 ms
75,580 KB |
testcase_18 | AC | 77 ms
75,392 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 | 76 ms
75,588 KB |
testcase_27 | AC | 75 ms
75,192 KB |
testcase_28 | AC | 74 ms
75,652 KB |
testcase_29 | AC | 75 ms
75,324 KB |
testcase_30 | WA | - |
ソースコード
import math n = int(input()) cnt = {} cur = n for x in range(2, int(math.sqrt(n)) + 1): if cur % x == 0: cnt[x] = 0 while cur % x == 0: cnt[x] += 1 cur //= x ans = 0 for v in cnt.values(): ans ^= v if ans == 0: print("Bob") else: print("Alice")