Pairs With Given Xor

easy
1. You will be given an array and an integer k 2. You need to print count of all the pairs that have xor value equal to k 3. Input and output is handled for you 4. It is a functional problem ,please do not modify main()

Input Format

Input is handled for you.

Output Format

output handled

Constraints

1<=N<=100
 1<=A[] <=1000

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
8
8 10 7 2 10 1 3 12
2
Output
3
Previous
Rearrange An Array Such That Arr[i] = I
Next
Non Repeating Character

Related Questions