Problem Description

For each testcase you get n, k and n integers. Count number of subarrays whose XOR is exactly k.

Input Format

First integer t. For each: n k then n ints.

Output Format

t lines counts.

Sample Test Case

Input:
1 5 6 4 2 2 6 4
Output:
4

Constraints

Sum of n over all testcases

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next