結果

問題 No.2666 Decreasing Modulo Nim
ユーザー KudeKude
提出日時 2024-03-08 21:47:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 101,240 KB
最終ジャッジ日時 2024-03-08 21:47:38
合計ジャッジ時間 5,480 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 36 ms
53,460 KB
testcase_02 AC 36 ms
53,460 KB
testcase_03 AC 43 ms
63,268 KB
testcase_04 AC 68 ms
89,188 KB
testcase_05 AC 73 ms
92,308 KB
testcase_06 AC 41 ms
62,156 KB
testcase_07 AC 63 ms
83,032 KB
testcase_08 AC 49 ms
68,184 KB
testcase_09 AC 68 ms
88,976 KB
testcase_10 AC 62 ms
82,972 KB
testcase_11 AC 47 ms
67,544 KB
testcase_12 AC 44 ms
63,940 KB
testcase_13 AC 51 ms
72,460 KB
testcase_14 AC 46 ms
66,948 KB
testcase_15 AC 65 ms
87,080 KB
testcase_16 AC 46 ms
66,516 KB
testcase_17 AC 52 ms
72,640 KB
testcase_18 AC 60 ms
81,536 KB
testcase_19 AC 55 ms
76,704 KB
testcase_20 AC 53 ms
73,692 KB
testcase_21 AC 69 ms
89,012 KB
testcase_22 AC 45 ms
63,992 KB
testcase_23 AC 44 ms
63,956 KB
testcase_24 AC 47 ms
66,964 KB
testcase_25 AC 47 ms
68,208 KB
testcase_26 AC 61 ms
83,020 KB
testcase_27 AC 55 ms
76,872 KB
testcase_28 AC 69 ms
89,236 KB
testcase_29 AC 63 ms
83,116 KB
testcase_30 AC 71 ms
91,440 KB
testcase_31 AC 57 ms
77,988 KB
testcase_32 AC 63 ms
84,612 KB
testcase_33 AC 73 ms
92,320 KB
testcase_34 AC 43 ms
63,004 KB
testcase_35 AC 68 ms
88,928 KB
testcase_36 AC 60 ms
81,600 KB
testcase_37 AC 68 ms
88,796 KB
testcase_38 AC 72 ms
91,604 KB
testcase_39 AC 43 ms
63,012 KB
testcase_40 AC 63 ms
83,128 KB
testcase_41 AC 59 ms
78,084 KB
testcase_42 AC 58 ms
78,132 KB
testcase_43 AC 36 ms
53,460 KB
testcase_44 AC 36 ms
53,460 KB
testcase_45 AC 74 ms
92,696 KB
testcase_46 AC 73 ms
92,684 KB
testcase_47 AC 74 ms
92,696 KB
testcase_48 AC 72 ms
92,684 KB
testcase_49 AC 73 ms
92,652 KB
testcase_50 AC 73 ms
92,640 KB
testcase_51 AC 73 ms
92,652 KB
testcase_52 AC 74 ms
92,684 KB
testcase_53 AC 87 ms
101,240 KB
testcase_54 AC 84 ms
101,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
a = []
g1 = g2 = 0
for x in map(int, input().split()):
    q, r = divmod(x, m)
    g1 ^= q
    g2 ^= r
print('Alice' if g1 or g2 else 'Bob')
0