結果

問題 No.3046 White Tiger vs Monster
ユーザー SPD_9X2
提出日時 2025-03-22 23:06:57
言語 PyPy3
(7.3.23)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 329 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 241 ms
コンパイル使用メモリ 96,240 KB
実行使用メモリ 119,724 KB
最終ジャッジ日時 2026-07-07 20:32:17
合計ジャッジ時間 10,085 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 68 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

"""

"""

N,B = map(int,input().split())

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


ans = 0
dxor = 0

s = []

for a in A:
    if a.bit_length() < B.bit_length():
        ans += 1
        dxor ^= a
    elif a.bit_length() == B.bit_length():
        s.append(a)

s.sort()

if len(s) > 0 and s[0] <= dxor ^ B:
    ans += 1

print (ans)
0