結果
問題 | No.2666 Decreasing Modulo Nim |
ユーザー | miya145592 |
提出日時 | 2024-03-08 23:28:58 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 292 ms |
コンパイル使用メモリ | 81,700 KB |
実行使用メモリ | 105,516 KB |
最終ジャッジ日時 | 2024-03-08 23:29:05 |
合計ジャッジ時間 | 6,513 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 36 ms
53,460 KB |
testcase_01 | AC | 37 ms
53,460 KB |
testcase_02 | AC | 36 ms
53,460 KB |
testcase_03 | AC | 45 ms
66,028 KB |
testcase_04 | AC | 81 ms
100,492 KB |
testcase_05 | WA | - |
testcase_06 | AC | 43 ms
62,132 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 50 ms
69,628 KB |
testcase_12 | WA | - |
testcase_13 | AC | 56 ms
76,484 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 48 ms
67,956 KB |
testcase_17 | WA | - |
testcase_18 | AC | 71 ms
88,408 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | AC | 80 ms
100,332 KB |
testcase_22 | AC | 47 ms
67,336 KB |
testcase_23 | WA | - |
testcase_24 | AC | 49 ms
68,752 KB |
testcase_25 | WA | - |
testcase_26 | AC | 71 ms
93,108 KB |
testcase_27 | AC | 62 ms
82,152 KB |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | AC | 95 ms
99,508 KB |
testcase_34 | AC | 47 ms
65,672 KB |
testcase_35 | AC | 81 ms
100,148 KB |
testcase_36 | AC | 68 ms
88,584 KB |
testcase_37 | WA | - |
testcase_38 | AC | 87 ms
105,516 KB |
testcase_39 | AC | 45 ms
65,676 KB |
testcase_40 | AC | 70 ms
93,196 KB |
testcase_41 | WA | - |
testcase_42 | WA | - |
testcase_43 | AC | 36 ms
53,460 KB |
testcase_44 | AC | 44 ms
53,460 KB |
testcase_45 | WA | - |
testcase_46 | AC | 95 ms
99,792 KB |
testcase_47 | AC | 94 ms
99,800 KB |
testcase_48 | AC | 94 ms
99,792 KB |
testcase_49 | WA | - |
testcase_50 | AC | 94 ms
99,792 KB |
testcase_51 | WA | - |
testcase_52 | AC | 94 ms
99,792 KB |
testcase_53 | AC | 96 ms
99,840 KB |
testcase_54 | AC | 95 ms
99,840 KB |
ソースコード
import sys input = sys.stdin.readline N, M = map(int, input().split()) A = list(map(int, input().split())) X = 0 for a in A: X ^= a b = bin(M-1)[2:] x = bin(X)[2:] if len(b)>=len(x): if x.count("1")%2==0: print("Bob") else: print("Alice") else: if x[-len(b):].count("1")%2==0: print("Bob") else: print("Alice")