XORXORXOR
InterviewTime limit0.2sMemory limit512 MB
XOR the value B into A exactly C times and print the result.
- Level
Easy2 of 10
- Topics
- Bit manipulation, Math
- Solved
- No attempts yet
Problem
You are given three integers , , and . Start from and repeat the operation "XOR the current value with " exactly times.
In other words, print the value of , where appears times. Here is the bitwise exclusive or.
Input
The first line contains , , and separated by spaces. ()
Output
Print the computed result as a single integer on the first line.