int chaju(int a, int b)
{
    int c = a^b;
    int set1 = 0;
    int i = 0;
    for ( i = 0; i < 32; i++)
    {
        if (1 == ((c >> i) & 1))
            set1++;
    }
    return set1;

}

int main()
{
    int num1 = 0;
    int num2 = 0;
    int num3 = 0;
    printf("请输入:>");
    scanf("%d%d", &num1, &num2);
    num3=chaju(num1, num2);
    printf("%d\n",num3);
    return 0;
}