#include <stdio.h> int main() { int x, y; int n = 0; int count = 0; scanf("%d %d",&x,&y); n = x^y;//按位异或后相同为0,不同为1,接下来只需计算n中1的个数 while(n) { count++; n = n & (n-1);//按位与后将一个1替换为0 } printf("%d",count); retu...