結果

問題 No.2666 Decreasing Modulo Nim
ユーザー titiatitia
提出日時 2024-03-11 01:13:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 499 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 31,736 KB
最終ジャッジ日時 2024-03-11 01:13:56
合計ジャッジ時間 7,446 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,728 KB
testcase_01 AC 29 ms
9,728 KB
testcase_02 AC 29 ms
9,728 KB
testcase_03 AC 43 ms
12,668 KB
testcase_04 AC 148 ms
29,604 KB
testcase_05 AC 123 ms
31,308 KB
testcase_06 AC 36 ms
11,380 KB
testcase_07 AC 99 ms
24,892 KB
testcase_08 AC 62 ms
15,740 KB
testcase_09 AC 115 ms
29,624 KB
testcase_10 AC 95 ms
24,616 KB
testcase_11 AC 53 ms
14,988 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 117 ms
29,300 KB
testcase_22 AC 45 ms
13,484 KB
testcase_23 AC 45 ms
13,400 KB
testcase_24 AC 50 ms
14,316 KB
testcase_25 AC 55 ms
15,904 KB
testcase_26 AC 96 ms
24,864 KB
testcase_27 AC 77 ms
20,956 KB
testcase_28 AC 124 ms
29,712 KB
testcase_29 AC 97 ms
25,088 KB
testcase_30 AC 120 ms
30,316 KB
testcase_31 AC 82 ms
21,696 KB
testcase_32 AC 102 ms
26,024 KB
testcase_33 AC 123 ms
31,724 KB
testcase_34 AC 42 ms
12,440 KB
testcase_35 AC 114 ms
29,516 KB
testcase_36 AC 92 ms
23,516 KB
testcase_37 AC 112 ms
28,536 KB
testcase_38 AC 122 ms
30,424 KB
testcase_39 AC 40 ms
12,452 KB
testcase_40 AC 95 ms
25,248 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 129 ms
31,736 KB
testcase_46 AC 128 ms
31,736 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 136 ms
31,736 KB
testcase_50 AC 133 ms
31,736 KB
testcase_51 AC 133 ms
31,736 KB
testcase_52 AC 130 ms
31,736 KB
testcase_53 AC 130 ms
31,724 KB
testcase_54 AC 130 ms
31,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

n,m=map(int,input().split())
A=list(map(int,input().split()))

XOR=0
for a in A:
    XOR^=(a%m)

if XOR==0:
    print("Bob")
else:
    print("Alice")
"""
x=m-1

def win(A,x):
    flag=0

    for i in range(n):
        for k in range(1,A[i]+1):
            if k%m<=x:
                flag=1
                B=A[:]
                B[i]-=k

                if win(B,k%m)==False:
                    return True

    return False

print(XOR,win(A,x))
        
"""
0