LearnPy Hub
← Arena
IntermediateRating 1100

Bits to Flip

How many bits must be flipped to turn a into b?

Input

Two non-negative integers a and b (up to 10¹⁸).

Output

One integer.

Sample 1

Input
10 7
Output
3

Sample 2

Input
3 4
Output
3
solution.py
Output appears here
Bits to Flip · Python Arena problem · LearnPy Hub