結果

問題 No.2666 Decreasing Modulo Nim
ユーザー miya145592miya145592
提出日時 2024-03-08 23:26:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 360 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 105,516 KB
最終ジャッジ日時 2024-03-08 23:26:58
合計ジャッジ時間 5,904 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,460 KB
testcase_01 AC 36 ms
53,460 KB
testcase_02 AC 36 ms
53,460 KB
testcase_03 AC 44 ms
66,028 KB
testcase_04 AC 79 ms
100,492 KB
testcase_05 WA -
testcase_06 AC 42 ms
62,132 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 49 ms
69,628 KB
testcase_12 WA -
testcase_13 AC 55 ms
76,484 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 47 ms
67,956 KB
testcase_17 WA -
testcase_18 AC 66 ms
88,408 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 79 ms
100,332 KB
testcase_22 AC 46 ms
67,336 KB
testcase_23 WA -
testcase_24 AC 48 ms
68,752 KB
testcase_25 WA -
testcase_26 AC 70 ms
93,108 KB
testcase_27 AC 61 ms
82,152 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 94 ms
99,508 KB
testcase_34 AC 44 ms
65,672 KB
testcase_35 AC 80 ms
100,148 KB
testcase_36 AC 67 ms
88,584 KB
testcase_37 WA -
testcase_38 AC 88 ms
105,516 KB
testcase_39 AC 44 ms
65,676 KB
testcase_40 AC 69 ms
93,196 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 36 ms
53,460 KB
testcase_44 AC 36 ms
53,460 KB
testcase_45 WA -
testcase_46 AC 94 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 97 ms
99,792 KB
testcase_53 AC 98 ms
99,840 KB
testcase_54 AC 96 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)[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")
0