結果

問題 No.2666 Decreasing Modulo Nim
ユーザー ゼット
提出日時 2024-03-08 21:40:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 224 ms
コンパイル使用メモリ 82,244 KB
実行使用メモリ 107,904 KB
最終ジャッジ日時 2024-09-29 19:09:22
合計ジャッジ時間 5,934 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 55
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
A=list(map(int,input().split()))
x=0
y=0
for i in range(N):
  p=A[i]//M
  q=A[i]%M
  x^=p
  y^=q
if x==0 and y==0:
  print('Bob')
else:
  print('Alice')
0