题号:NC295131
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 1024 M,其他语言2048 M
64bit IO Format: %lld
题目描述
The annual GXCPC (Grand XOR Counting Problem Challenge) is here again! This year, Judge Colin has prepared another super difficult counting problem for the contestants! Can you slay this ultimate counting problem and win the championship?
Eva has two magic parameters

and

.
Colin has two integer sequences

and

.
They want to know how many pairs of indices
)
satisfying:
Where

represents the bitwise XOR operation.
输入描述:
The first line contains three integers
, representing the length of the two sequences and the magic parameters.
The second line contains
integers
, representing the first sequence.
The third line contains
integers
, representing the second sequence.
输出描述:
A single integer, representing the number of pairs satisfying the condition.
示例1
输入
复制
5 1 2
3 4 5 6 7
1 2 3 1 2
说明
There are two valid pairs in the sample:
and )