結果

問題 No.2666 Decreasing Modulo Nim
ユーザー miya145592miya145592
提出日時 2024-03-09 00:10:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 453 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 105,644 KB
最終ジャッジ日時 2024-03-09 00:10:13
合計ジャッジ時間 6,779 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 36 ms
53,460 KB
testcase_02 AC 37 ms
53,460 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 50 ms
69,628 KB
testcase_12 AC 53 ms
67,176 KB
testcase_13 AC 56 ms
76,484 KB
testcase_14 AC 49 ms
68,736 KB
testcase_15 AC 75 ms
96,132 KB
testcase_16 AC 48 ms
67,956 KB
testcase_17 AC 57 ms
78,740 KB
testcase_18 AC 67 ms
88,408 KB
testcase_19 AC 61 ms
81,940 KB
testcase_20 AC 59 ms
80,228 KB
testcase_21 AC 79 ms
100,332 KB
testcase_22 AC 47 ms
67,336 KB
testcase_23 AC 46 ms
67,312 KB
testcase_24 AC 48 ms
68,752 KB
testcase_25 AC 51 ms
72,724 KB
testcase_26 AC 69 ms
93,104 KB
testcase_27 AC 62 ms
82,152 KB
testcase_28 AC 83 ms
100,652 KB
testcase_29 AC 70 ms
93,184 KB
testcase_30 AC 84 ms
104,340 KB
testcase_31 AC 65 ms
86,196 KB
testcase_32 AC 73 ms
95,816 KB
testcase_33 AC 93 ms
99,508 KB
testcase_34 AC 45 ms
65,672 KB
testcase_35 AC 79 ms
100,148 KB
testcase_36 AC 66 ms
88,456 KB
testcase_37 AC 78 ms
99,552 KB
testcase_38 AC 87 ms
105,644 KB
testcase_39 AC 45 ms
65,656 KB
testcase_40 AC 70 ms
93,192 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 36 ms
53,460 KB
testcase_44 AC 37 ms
53,460 KB
testcase_45 WA -
testcase_46 WA -
testcase_47 AC 93 ms
99,672 KB
testcase_48 AC 93 ms
99,664 KB
testcase_49 AC 93 ms
99,672 KB
testcase_50 AC 94 ms
99,664 KB
testcase_51 AC 95 ms
99,672 KB
testcase_52 AC 99 ms
99,664 KB
testcase_53 AC 97 ms
99,840 KB
testcase_54 AC 106 ms
99,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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")>0:
        print("Alice")
    else:
        print("Bob")
elif len(b)==len(x):
    if x.count("1")>0:
        print("Alice")
    else:
        print("Bob")
else:
    if x[-len(b):].count("1")>0:
        print("Alice")
    else:
        print("Bob")
0