Score : $400$ points
Let $f(A, B)$ be the exclusive OR of $A, A+1, ..., B$. Find $f(A, B)$.
What is exclusive OR?
The bitwise exclusive OR of integers $c_1, c_2, ..., c_n$ (let us call it $y$) is defined as follows:
For example, the exclusive OR of $3$ and $5$ is $6$. (When written in base two: the exclusive OR of 011
and 101
is 110
.)
Input is given from Standard Input in the following format:
$A$ $B$
Compute $f(A, B)$ and print it.
2 4
5
$2, 3, 4$ are 010
, 011
, 100
in base two, respectively.
The exclusive OR of these is 101
, which is $5$ in base ten.
123 456
435
123456789012 123456789012
123456789012