Skip to content
>_
LearnPy Hub
☰ Menu
Learn
Practice
Compiler
Arena
Contest
About
◐
← Arena
Easy
Rating 900
Different Bits
Print how many bit positions differ between x and y.
Input
x y.
Output
A count.
Sample 1
Input
1 4
Output
2
Sample 2
Input
3 1
Output
1
solution.py
☀ Light
Clear
▶ Run
▶ Run samples
Submit
Output appears here
Different Bits · Python Arena problem · LearnPy Hub