317. Hamming Distance
EasyXOR
Print the number of bit positions where a and b differ.
Input format
A single line: a b
Output format
The Hamming distance.
Example 1
Input
1 4
Output
2
Example 2
Input
3 1
Output
1
Constraints
0 ≤ a, b < 2⁶²
Read input from standard input and print the answer to standard output. Your code is judged against 4 test cases, most of them hidden.
Loading the MyLoginn IDE…