結果

問題 No.669 対決!!! 飲み比べ
ユーザー あかりきあかりき
提出日時 2021-05-04 19:03:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 82,216 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-07-23 14:18:25
合計ジャッジ時間 2,523 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a=list(map(int,input().split()))
x=0
for i in range(n):
  x^=a[i]%(k+1)
if x==0:
  print('NO')
else:
  print('YES')
0