XOR-Equation A
We use for the bitwise XOR of and .
Define the XOR-product of and , denoted by , similar to a long multiplication in base , except that the intermediate results are XORed instead of the usual integer addition.
For example, , or in base , :
We consider the equation:
For example, is a solution.
Let be the XOR of the values for all solutions to this equation satisfying .
You are given .
Find .
异或等式(一)
用表示和按位异或的结果。
考虑和的进制长乘法,但将中间结果的相加替换为按位异或,定义其结果为和的异或积,并记作。
例如,,或在进制下,:
考虑等式:
例如,是上式的一个解。
考虑所有满足的上式的解,并记为所有这些解中的取值按位异或的结果。
已知。
求。
Gitalking ...