比较两个二进制位是否相同,可以用异或计算,得到新的二进制数,不同就为1,相同就为0,然后直接计算有多少个1就行了,也就是把所有1加起来
m,n = map(int,input().split()) x = format(m ^ n,"b") print(sum(map(int,x)))