結果

問題 No.3046 White Tiger vs Monster
ユーザー 👑 SPD_9X2
提出日時 2025-03-22 23:06:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 674 ms
コンパイル使用メモリ 82,284 KB
実行使用メモリ 114,556 KB
最終ジャッジ日時 2025-03-22 23:07:08
合計ジャッジ時間 10,629 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 68 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

"""

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