1898: 异或和(xor)-2025-CSP-J

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Input

输入的第一行包含两个非负整数 n, k,分别表示小 R 的序列长度和小 X 给小 R 的
非负整数。
输入的第二行包含 n 个非负整数 a1, a2, . . . , an,表示小 R 的序列。

Output

输出一行一个非负整数,表示小 R 能选出的区间数量的最大值。

Sample Input Copy

4 2
2 1 0 3

Sample Output Copy

2

HINT