結果
問題 | No.2666 Decreasing Modulo Nim |
ユーザー | nikoro256 |
提出日時 | 2024-03-08 22:21:29 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 335 bytes |
コンパイル時間 | 198 ms |
コンパイル使用メモリ | 81,700 KB |
実行使用メモリ | 130,372 KB |
最終ジャッジ日時 | 2024-03-08 22:21:36 |
合計ジャッジ時間 | 7,148 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 39 ms
53,460 KB |
testcase_01 | AC | 39 ms
53,460 KB |
testcase_02 | AC | 36 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 | WA | - |
testcase_12 | AC | 60 ms
75,840 KB |
testcase_13 | AC | 74 ms
94,956 KB |
testcase_14 | AC | 57 ms
78,832 KB |
testcase_15 | AC | 111 ms
101,156 KB |
testcase_16 | AC | 53 ms
72,884 KB |
testcase_17 | AC | 62 ms
84,048 KB |
testcase_18 | AC | 71 ms
93,460 KB |
testcase_19 | AC | 65 ms
87,192 KB |
testcase_20 | AC | 63 ms
83,456 KB |
testcase_21 | AC | 129 ms
124,476 KB |
testcase_22 | AC | 54 ms
75,904 KB |
testcase_23 | AC | 53 ms
75,860 KB |
testcase_24 | AC | 62 ms
78,872 KB |
testcase_25 | AC | 65 ms
81,612 KB |
testcase_26 | AC | 86 ms
97,884 KB |
testcase_27 | AC | 68 ms
88,260 KB |
testcase_28 | AC | 92 ms
99,056 KB |
testcase_29 | AC | 78 ms
97,980 KB |
testcase_30 | AC | 131 ms
129,832 KB |
testcase_31 | AC | 86 ms
107,116 KB |
testcase_32 | AC | 108 ms
100,780 KB |
testcase_33 | AC | 127 ms
119,416 KB |
testcase_34 | AC | 52 ms
71,604 KB |
testcase_35 | AC | 96 ms
98,748 KB |
testcase_36 | AC | 75 ms
95,324 KB |
testcase_37 | AC | 85 ms
103,584 KB |
testcase_38 | AC | 103 ms
99,888 KB |
testcase_39 | AC | 45 ms
68,000 KB |
testcase_40 | AC | 68 ms
94,536 KB |
testcase_41 | AC | 63 ms
89,444 KB |
testcase_42 | AC | 69 ms
89,504 KB |
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 | 139 ms
130,372 KB |
testcase_48 | AC | 123 ms
111,792 KB |
testcase_49 | AC | 137 ms
130,372 KB |
testcase_50 | AC | 131 ms
102,968 KB |
testcase_51 | AC | 147 ms
130,368 KB |
testcase_52 | AC | 117 ms
101,936 KB |
testcase_53 | AC | 98 ms
100,892 KB |
testcase_54 | AC | 99 ms
100,892 KB |
ソースコード
from collections import defaultdict N,M=map(int,input().split()) A=list(map(int,input().split())) nim=0 dic=defaultdict(int) for i in range(N): nim^=(A[i]//M) if A[i]%M>0: dic[A[i]%M]+=1 if nim>0: print('Alice') exit(0) for k in dic.keys(): if dic[k]%2>0: print('Alice') exit(0) print('Bob')